docker-entrypoint.sh (346B)
1 #!/bin/bash 2 set -e 3 4 # Apache needs these at runtime; create them in case the image layer didn't persist them 5 mkdir -p /var/run/apache2 /var/lock/apache2 6 7 # Start PHP-FPM as a daemon 8 /usr/local/sbin/php-fpm --daemonize 9 10 # Source Apache environment variables then run Apache in foreground 11 . /etc/apache2/envvars 12 exec /usr/sbin/apache2 -DFOREGROUND