on tourne sans root, quotes
This commit is contained in:
parent
5c900f6a29
commit
9d870cbc7f
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 && \
|
apt-get -y install libpng12-dev && \
|
||||||
docker-php-ext-install gd && \
|
docker-php-ext-install gd && \
|
||||||
apt-get clean all && \
|
apt-get clean all && \
|
||||||
a2enmod headers && \
|
a2enmod headers && \
|
||||||
rm -rf /usr/share/doc/* \
|
rm -rf "/usr/share/doc/*" \
|
||||||
/var/cache/* \
|
"/var/cache/*" \
|
||||||
/var/lib/apt/lists/*
|
"/var/lib/apt/lists/*" \
|
||||||
|
"/var/www/html"
|
||||||
|
|
||||||
COPY src/ /var/www/html/
|
COPY "src" "/var/www/html"
|
||||||
RUN chown -R www-data:www-data /var/www/html/
|
RUN chown -R "www-data":"www-data" "/var/www/html/"
|
||||||
|
|
||||||
|
USER "www-data"
|
||||||
|
|
||||||
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