Browse Source

on tourne sans root, quotes

master
Julien Cabillot 3 years ago
committed by root
parent
commit
fdc7689bda
1 changed files with 13 additions and 8 deletions
  1. 21
      Dockerfile

21
Dockerfile

@ -1,16 +1,21 @@
FROM php:apache
FROM "php:apache"
RUN apt-get update && \
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' && \
apt-get update && \
apt-get -y install libpng12-dev && \
docker-php-ext-install gd && \
apt-get clean all && \
a2enmod headers && \
rm -rf /usr/share/doc/* \
/var/cache/* \
/var/lib/apt/lists/*
rm -rf "/usr/share/doc/*" \
"/var/cache/*" \
"/var/lib/apt/lists/*" \
"/var/www/html"
COPY src/ /var/www/html/
RUN chown -R www-data:www-data /var/www/html/
COPY "src" "/var/www/html"
RUN chown -R "www-data":"www-data" "/var/www/html/"
USER "www-data"
HEALTHCHECK --interval=10s \
CMD curl --fail "http://localhost" || exit 1
CMD curl --fail "http://localhost:8080" || exit 1
Loading…
Cancel
Save