Skip to content
This repository has been archived by the owner on Apr 14, 2023. It is now read-only.

Luzifer/docker-php5-nginx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

luzifer/php5-nginx Dockerfile

This repository contains Dockerfile of Nginx with PHP5 applications which have an index.php as an entry point like PHPFramework apps for Docker's automated build published to the public Docker Hub Registry.

Base Docker Image

Installation

  1. Install Docker.

  2. Download automated build from public Docker Hub Registry: docker pull luzifer/php5-nginx

    (alternatively, you can build an image from Dockerfile: docker build -t="luzifer/php5-nginx" github.com/luzifer/php5-nginx)

Usage

Create a Dockerfile similar to the following in your application code folder:

FROM luzifer/php5-nginx

RUN mkdir -p /application
ADD . /application

EXPOSE 80
CMD ["/usr/local/bin/container-run.sh"]

Then, execute the following to build the image:

docker build -t myuser/myapp .

This will create an image named myuser/myapp with your application ready to go. To launch it, just type:

docker run -d -p 80 myuser/myapp

Easy!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published