1
0
mirror of https://github.com/klokantech/tileserver-php.git synced 2025-01-17 06:08:17 +01:00

Ensure restarting runs well in Docker

This commit is contained in:
Petr Pridal 2015-09-05 02:54:14 +02:00
parent 56d749f982
commit dbc3651679
2 changed files with 4 additions and 2 deletions

View File

@ -23,4 +23,4 @@ RUN chmod +x /start.sh && \
VOLUME /var/www
EXPOSE 80
CMD ["/start.sh"]
ENTRYPOINT ["/start.sh"]

View File

@ -12,4 +12,6 @@ fi
echo
echo "Apache logs:"
echo
exec /usr/sbin/apache2ctl -e info -D FOREGROUND
source /etc/apache2/envvars
rm -Rf $APACHE_PID_FILE
exec /usr/sbin/apache2 -e info -D FOREGROUND