2017-11-01 18:41:29 +01:00
|
|
|
FROM "php:7.1-apache"
|
2017-10-31 13:30:28 +00:00
|
|
|
|
2017-11-01 18:57:41 +01:00
|
|
|
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/*" \
|
2017-11-03 08:43:28 +01:00
|
|
|
"/var/cache/*" \
|
|
|
|
|
"/var/lib/apt/lists/*" \
|
|
|
|
|
"/usr/src/*" \
|
|
|
|
|
"/var/cache/*" \
|
|
|
|
|
"/var/log/"{apt/*,dpkg.log} \
|
|
|
|
|
"/var/www/html" && \
|
|
|
|
|
mkdir "/var/www/html" && \
|
|
|
|
|
chown "www-data":"www-data" "/var/www/html"
|
2017-11-01 18:57:41 +01:00
|
|
|
|
2017-11-01 18:41:29 +01:00
|
|
|
USER "www-data"
|
2017-10-31 13:30:28 +00:00
|
|
|
RUN curl -L "https://download.dokuwiki.org/src/dokuwiki/dokuwiki-stable.tgz" | tar -zx --strip=1
|
|
|
|
|
|
2017-11-01 18:41:29 +01:00
|
|
|
HEALTHCHECK --interval="10s" \
|
2017-11-01 18:57:41 +01:00
|
|
|
CMD curl --fail "http://localhost:8080" || exit 1
|