From 13cc73d0f57f3799fb7a01d5e0f9f1a681e31240 Mon Sep 17 00:00:00 2001 From: Julien Cabillot Date: Mon, 6 Nov 2017 17:12:19 +0100 Subject: [PATCH] utilisation de registry.cabillot.eu/www/phpapache --- Dockerfile | 36 +----------------------------------- 1 file changed, 1 insertion(+), 35 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0700307..4bc4e76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,37 +1,3 @@ -FROM "php:7.1-apache" - -RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \ - sed -i'' 's/^$//' '/etc/apache2/sites-enabled/000-default.conf' && \ - { \ - echo 'RemoteIPHeader X-Real-IP'; \ - echo 'RemoteIPProxiesHeader X-Forwarded-By'; \ - } | tee "$APACHE_CONFDIR/conf-available/remoteip.conf" && \ - a2enconf remoteip && \ - a2enmod remoteip && \ - apt-get -y autoremove --purge && \ - apt-get -y clean all && \ - rm -rf "/usr/share/doc/*" \ - "/var/cache/*" \ - "/var/lib/apt/lists/*" \ - "/usr/src/*" \ - "/var/cache/*" \ - "/var/log/"{apt/*,dpkg.log} \ - "/var/www/html" \ - "/tmp/*" +FROM "registry.cabillot.eu/www/phpapache" COPY "root" "/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" - -CMD [ "docker-php-entrypoint", "apache2-foreground" ] - -HEALTHCHECK --interval="10s" \ - CMD curl --fail "http://localhost:8080" || exit 1