alexmbarbosa/apache2

By alexmbarbosa

Updated over 6 years ago

This is a simple apache2 web server on debian.

Image

34

Below are the main Dockerfile settings.

RUNNERS

RUN apt-get -y update && apt-get -y install apache2
&& apt-get clean all

Environment

ENV APACHE_RUN_USER="www-data" ENV APACHE_RUN_GROUP="www-data" ENV APACHE_LOG_DIR="/var/log/apache2" ENV APACHE_LOCK_DIR="/var/lock" ENV APACHE_PID_FILE="/var/run/apache2.pid"

Volume

VOLUME /var/www/html

Ports

EXPOSE 80

CMD command exec for container (Start Apache2 Daemon):

CMD apachectl -D FOREGROUND

STARTING CONTAINER EXAMPLE:

docker run -d -p 80:80 alexmbarbosa/apache2:latest

Docker Pull Command

docker pull alexmbarbosa/apache2