From 7c58000125518d420efeb14aea2d87c97372a4dd Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Nov 2017 19:49:01 +0100 Subject: [PATCH] =?UTF-8?q?passage=20=C3=A0=20www/phpapache?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 31 ++++--------------------------- 1 file changed, 4 insertions(+), 27 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8127930..5b453f6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,28 +1,5 @@ -FROM "php:7.1-apache" +ARG VERSION="latest" +FROM "registry.cabillot.eu/www/phpapache:${VERSION}" +MAINTAINER "Julien Cabillot " -RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \ - sed -i'' 's/^$//' '/etc/apache2/sites-enabled/000-default.conf' && \ - rm -rf "/usr/share/doc/*" \ - "/var/cache/*" \ - "/var/lib/apt/lists/*" \ - "/usr/src/*" \ - "/var/cache/*" \ - "/var/log/"{apt/*,dpkg.log} \ - "/var/www/html" \ - "/tmp/*" && \ - mkdir "/var/www/html" && \ - chown "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" -RUN curl -L "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz" | tar -zx --strip=1 - -CMD [ "docker-php-entrypoint", "apache2-foreground" ] - -HEALTHCHECK --interval="10s" \ - CMD curl --fail "http://localhost:8080" || exit 1 +RUN curl -s -S -L "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz" | tar -zx --strip=1