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' && \ 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 HEALTHCHECK --interval="10s" \ CMD curl --fail "http://localhost:8080" || exit 1