FROM "php:apache" WORKDIR "/var/www" RUN sed -i'' 's/^Listen 80$/Listen 8080/' "/etc/apache2/ports.conf" && \ sed -i'' 's/^$//' '/etc/apache2/sites-enabled/000-default.conf' && \ apt-get update && \ apt-get -y install libpng12-dev git && \ docker-php-ext-install gd && \ apt-get clean all && \ a2enmod headers && \ rm -rf "/var/www/html" && \ git clone "https://github.com/blueimp/jQuery-File-Upload.git" "html" && \ rm -rf "/usr/share/doc/*" \ "/var/cache/*" \ "/var/lib/apt/lists/*" RUN chown -R "www-data":"www-data" "/var/www/html" USER "www-data" HEALTHCHECK --interval=10s \ CMD curl --fail "http://localhost:8080" || exit 1