nickwshaw / jx-quickstart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP Quickstart

This is a simple hellow quickstart inspired by mfieldhouse/docker-php-helloworld

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
  • sudo docker build -t docker-php-helloworld .
  • sudo docker run -p 80:80 docker-php-helloworld

What You Should See

Docker PHP App

About

License:Apache License 2.0


Languages

Language:Makefile 48.6%Language:Smarty 33.9%Language:PHP 14.0%Language:Dockerfile 3.6%