Supported tags and respective
- latest (latest/Dockerfile)
What is httpd-php
httpd-php is docker image that run httpd with php support based on centos:centos7 image.
How to use this image
With Command Line
For httpd-php projects run through the command line interface (CLI), you can do the following.
Dockerfile in your httpd-php project
FROM wonxin/httpd-php:latest COPY . /var/www/html
Then, run the commands to build and run the Docker image:
$ docker build -t my-prj . $ docker run --rm --name my-running-prj my-prj
Run a single httpd-php project
For many simple projects, you may find it inconvenient to write a complete Dockerfile.
In such cases, you can run a httpd-php project by using the httpd-php Docker image directly:
$ docker run --name my-running-prj -v "$PWD":/var/www/html wonxin/httpd-php:latest