From ee5ee0b2c5ee028d6e5caf6cab8d06ab86bd30b0 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Nov 2017 11:19:25 +0100 Subject: [PATCH] ajout de tiny pour l'init --- Dockerfile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index fb8593d..81fff88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,8 +28,16 @@ RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \ php "composer.phar" install && \ 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" +CMD [ "docker-php-entrypoint", "apache2-foreground" ] + HEALTHCHECK --interval="10s" \ CMD curl --fail "http://localhost:8080" || exit 1