Public Repository

Last pushed: 2 years ago
Short Description
Apache-php with composer built specifically for drupal
Full Description

Apache-php with composer built specifically for drupal.

Building the base image

To create the base image ibnsaeed/apache-php, execute the following command inside a newly created directory.

docker build -t ibnsaeed/apache-php .

Running your Apache+PHP docker image

Start your image binding the external ports 80 in all interfaces to your container:

docker run -d -p 80:80 ibnsaeed/apache-php

Test your deployment:

curl http://localhost/

Hello world!
Loading your custom PHP application

This image can be used as a base image for your PHP application. Create a new Dockerfile in your PHP application folder with the following contents:

FROM ibnsaeed/apache-php

After that, build the new Dockerfile:

docker build -t username/my-php-app .

And test it:

docker run -d -p 80:80 username/my-php-app

Test your deployment:

curl http://localhost/

That's it!

Docker Pull Command
Owner
ibnsaeed

Comments (0)