on ne tourne plus en root
This commit is contained in:
parent
2580d275ba
commit
f041551792
10
Dockerfile
10
Dockerfile
@ -1,9 +1,13 @@
|
|||||||
FROM "php:7.1-apache"
|
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"
|
USER "www-data"
|
||||||
RUN curl -L "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz" | tar -zx --strip=1
|
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" \
|
HEALTHCHECK --interval="10s" \
|
||||||
CMD curl --fail "http://localhost" || exit 1
|
CMD curl --fail "http://localhost:8080" || exit 1
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user