Sign inSign up

alexmbarbosa/apache2

By alexmbarbosa

•Updated about 8 years ago

This is a simple apache2 web server on debian.

Image
0

198

alexmbarbosa/apache2 repository overview

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

Tag summary

Content type

Image

Digest

Size

89.6 MB

Last updated

about 8 years ago

docker pull alexmbarbosa/apache2