Alpine-based Apache2 Server (httpd) in a Docker Image
940
Preliminary Documentation - 2020-04-21
A Docker Alpine-based Apache2 Server based on the latest release
of
httpd:2.4.43-alpine from
The Apache HTTP Server Project.
Source: GIT Repository
Docker Image: ewsdocker/alpine-apache
Getting the source
git clone https://github.com/ewsdocker/alpine-apache
Getting pre-built image
docker pull ewsdocker/alpine-apache:2.4.43
or
docker pull ewsdocker/alpine-apache:latest
Building and Installing
In the following 2 examples, in the install (or run) phase, the volume line (-v) must be modified to point to the host directory to point to the actual files to be served.
Manual Build (from GIT clone)
docker build --file=Dockerfile -t ewsdocker/alpine-apache:2.4.43 .
Manual Install (from GIT or Docker)
docker run \
-dit \
--restart unless-stopped \
--name httpd \
-p 80:80 \
-v ${HOME}/public_html/:/usr/local/apache2/htdocs/ \
ewsdocker/alpine-apache:2.4.43
Build and Install Script (from GIT clone)
Navigate to the builds directory in the alpine-apache source directory and run the script named
./build-httpd.sh
(you may have to make it an executable file).
Content type
Image
Digest
Size
31.8 MB
Last updated
over 6 years ago
docker pull ewsdocker/alpine-apache