This Docker image contains Apache (httpd), a web server.

Here’s the Dockerfile.

<pre lang="bash">
FROM httpd:2.4
COPY ./public-html/ /usr/local/apache2/htdocs/

Build and run your Docker image.

<pre lang="bash">
docker build -t my-app .
docker run -dit --name my-running-app -p 8080:80 my-app

Visit http://localhost:8080 to view your app.