[store-web] Create fake apache2 binary to trigger entrypoint rsync



commit 0836a83fe039ecfb0e53f2b9c150c6718d558727
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Tue Dec 29 10:27:28 2020 +0100

    Create fake apache2 binary to trigger entrypoint rsync

 Dockerfile | 1 +
 entrypoint | 5 +++--
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/Dockerfile b/Dockerfile
index 8e67a42..5be0858 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -25,5 +25,6 @@ RUN yes no | pecl install redis && \
 ADD php.ini /usr/local/etc/php/conf.d/wordpress.ini
 RUN sed -i 's/pm.max_children =.*/pm.max_children = 8/' /usr/local/etc/php-fpm.d/www.conf
 
+RUN ln -s /usr/bin/true /usr/bin/apache2
 ADD entrypoint /entrypoint
 ENTRYPOINT ["/entrypoint"]
diff --git a/entrypoint b/entrypoint
index 5f0375b..54a9978 100755
--- a/entrypoint
+++ b/entrypoint
@@ -1,7 +1,8 @@
 #!/bin/bash
 
-WP="wp"
+docker-entrypoint.sh apache2
 
+WP="wp"
 IMAGE_VERSION="$WORDPRESS_VERSION"
 CURRENT_VERSION="$($WP core version)"
 
@@ -10,4 +11,4 @@ if [[ "$CURRENT_VERSION" != "$IMAGE_VERSION" ]]; then
     $WP plugin update --all
 fi
 
-exec docker-entrypoint.sh php-fpm
+exec php-fpm


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]