mirror of
https://github.com/Luzifer/docker-php5-nginx.git
synced 2024-11-08 14:10:06 +00:00
No description
files | ||
handlers | ||
tasks | ||
.gitignore | ||
Dockerfile | ||
inventory | ||
playbook.yml | ||
README.md | ||
Vagrantfile |
luzifer/php5-nginx Dockerfile
This repository contains Dockerfile of Nginx for Docker's automated build published to the public Docker Hub Registry.
Base Docker Image
Installation
-
Install Docker.
-
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
ONBUILD RUN mkdir -p /application
ONBUILD 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!