A Dockerfile which produces a docker image that runs Nginx with PHP5.
- Docker 1.0
- Ubuntu Trusty
- Nginx 1.6
- PHP 5.5
- PHP Modules: php5-common php5-fpm php5-cli php5-dev php-apc php-pear
-
Run directly
docker pull catatnight/nginx-php5 docker run -p 80:80 -v <data-dir>:/data --name app -d catatnight/nginx-php5
-
As base image in
Dockerfile
From catatnight/nginx-php5 RUN apt-get -y install php5-mysql ... ...
- The Nginx server is configured to host a website from the
/data
folder inside the container.