ajout de tiny comme init

This commit is contained in:
Julien Cabillot 2017-11-05 19:11:25 +01:00 committed by root
parent d3b5117eda
commit 1d034f5bd9

View File

@ -21,7 +21,15 @@ RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \
RUN chown -R "www-data":"www-data" "/var/www/html" RUN chown -R "www-data":"www-data" "/var/www/html"
# Add Tini
ENV "TINI_VERSION" "v0.16.1"
ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini"
RUN chmod +x "/tini"
ENTRYPOINT ["/tini", "--"]
USER "www-data" USER "www-data"
HEALTHCHECK --interval=10s \ CMD [ "docker-php-entrypoint", "apache2-foreground" ]
HEALTHCHECK --interval="10s" \
CMD curl --fail "http://localhost:8080" || exit 1 CMD curl --fail "http://localhost:8080" || exit 1