This image only contains Apache httpd with the defaults from upstream
61
This image only contains Apache httpd with the defaults from upstream. There is no PHP installed.
How to use:
1.Create a Dockerfile in your project and create a public-html file in your current working directory.
FROM httpd:2.4
COPY ./public-html/ /usr/local/apache2/htdocs/
$ docker build -t my_apache .
$ docker run -dit --name my_apache _container -p 8080:80 my-apache
Without a Dockerfile If you don't want to include a Dockerfile in your project, it is sufficient to do the following:
$ docker run -dit --name my-apache-app -p 8080:80 -v "$PWD":/usr/local/apache2/htdocs/ httpd:2.4
Content type
Image
Digest
Size
53.9 MB
Last updated
about 7 years ago
docker pull dockerhamse/apache:v.0.1