This is a Dockerfile to build a debian based container image running nginx and php-fpm 7.2.x / 7.0.x
Docker Tag | GitHub Release | Nginx Version | PHP Version | Debian Version |
---|---|---|---|---|
latest | master Branch | 1.13.8 | 7.2.1 | stretch |
php70 | php70 Branch | 1.13.6 | 7.0.25 | jessie |
To build from source you need to clone the git repo and run docker build:
$ git clone https://github.com/wyveo/nginx-php-fpm.git
followed by
$ docker build -t nginx-php-fpm:latest . # PHP 7.2.x
or
$ docker build -t nginx-php-fpm:php70 . # PHP 7.0.x
$ docker pull wyveo/nginx-php-fpm:latest
To run the container:
$ sudo docker run -d wyveo/nginx-php-fpm:latest
Default web root:
/usr/share/nginx/html