Sign inSign up

legalthings/apache-php71

By legalthings

Updated about 8 years ago

Docker image to run your php7 app with apache

Image
0

301

legalthings/apache-php71 repository overview

legalthings-docker-php

Base docker image to run PHP applications on Apache

Building the base image

To create the base image legalthings/apache-php71, execute the following command on the tutum-docker-php folder:

docker build -t legalthings/apache-php71 .

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 legalthings/apache-php71

After that, build the new Dockerfile:

docker build -t username/php-app .

Running it:

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

Check your deployment:

curl http://localhost/

Loading your custom PHP application with composer requirements

Create a Dockerfile like the following:

FROM legalthings/apache-php71
RUN rm -fr /app
ADD . /app
RUN composer install

Tag summary

Content type

Image

Digest

Size

187.5 MB

Last updated

about 8 years ago

docker pull legalthings/apache-php71