Public | Automated Build

Last pushed: 12 days ago
Short Description
Apache with PHP support
Full Description

Supported tags and respective Dockerfile links

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.

Create a 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
Docker Pull Command
Owner
wonxin
Source Repository