FROM debian:latest RUN apt-get update RUN apt-get install -y apache2 ENV APACHE_RUN_DIR /var/www/html ENV APACHE_RUN_USER www-data ENV APACHE_RUN_GROUP www-data ENV APACHE_LOG_DIR /var/log/apache2 ENTRYPOINT ["/usr/sbin/apache2"] CMD ["-D", "FOREGROUND"]