Browse Source

on ne tourne plus en root

master
root 3 years ago
parent
commit
96cf9d5bfd
1 changed files with 7 additions and 3 deletions
  1. 10
      Dockerfile

10
Dockerfile

@ -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
Loading…
Cancel
Save