on ne tourne plus en root

This commit is contained in:
Julien Cabillot 2017-11-01 18:57:41 +01:00 committed by root
parent 2580d275ba
commit f041551792

View File

@ -1,9 +1,13 @@
FROM "php:7.1-apache"
RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \
sed -i'' 's/^<VirtualHost \*:80>$/<VirtualHost *:8080>/' '/etc/apache2/sites-enabled/000-default.conf' && \
rm -rf "/usr/share/doc/*" \
"/var/cache/*" \
"/var/lib/apt/lists/*"
USER "www-data"
RUN curl -L "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz" | tar -zx --strip=1
# TODO: utiliser un utilisateur www-data
USER "root"
HEALTHCHECK --interval="10s" \
CMD curl --fail "http://localhost" || exit 1
CMD curl --fail "http://localhost:8080" || exit 1