Permet simplement d'afficher l'IP du visiteur
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

14 lines
415 B

FROM "php:apache"
RUN rm -rf "/var/www/html" && \
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'
COPY "root" "/var/www/html"
RUN chown -R "www-data":"www-data" "/var/www/html"
USER "www-data"
HEALTHCHECK --interval="10s" \
CMD curl --fail "http://localhost:8080" || exit 1