Browse Source

ajout de tiny pour l'init

master
root 3 years ago
parent
commit
ee5ee0b2c5
1 changed files with 8 additions and 0 deletions
  1. 8
      Dockerfile

8
Dockerfile

@ -28,8 +28,16 @@ RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \
php "composer.phar" install && \ php "composer.phar" install && \
a2enmod rewrite a2enmod rewrite
# 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"
CMD [ "docker-php-entrypoint", "apache2-foreground" ]
HEALTHCHECK --interval="10s" \ HEALTHCHECK --interval="10s" \
CMD curl --fail "http://localhost:8080" || exit 1 CMD curl --fail "http://localhost:8080" || exit 1

Loading…
Cancel
Save