Skip to content

karthickcse05/docker-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-php

How it Works

Docker builds an image containing the application in src/ and all of its dependencies by using the Dockerfile contained in this repository.

The Dockerfile tells docker to use the official PHP Docker image as the parent image.

The PHP image then uses the official Debian Jessie Docker image as its parent image.

Debian then uses the scratch image as its base image.

At this point, an image has been built which contains Apache, PHP and all of the OS dependencies and libraries required to serve a webpage written in PHP.

Finally, docker copies everything in src/ inside this repository to the /var/www/html folder inside the image. This is the Apache web root directory.

Setup

  • Ensure you have Docker installed
  • git clone this repository
  • docker build -t docker-php .
  • docker run -p 80:80 docker-php

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published