This is the simple Dockerfile to build a image that with Nginx and PHP7-FPM daemon support.
142
https://github.com/kensonman/nginx-php7fpm
This is the simple Dockerfile to build a image that with Nginx and PHP7-FPM daemon support.
The Nginx is base on the offical docker image.
The PHP was installed by Dotdeb.
Download or Clone the Dockerfile into local;
Execute the belows command in terminals:
cd nginx-php7fpm
docker build --build-arg UID=$UID --build-arg GID=`id -g` --build-arg USERNAME=`whoami` -t nginx-php7fpm .
The container installed the belows modules:
If you need to install extra php module, simply create the docker-file as belows:
FROM kensonman/nginx-php7fpm:latest
RUN apt update \
&& apt install -y <php-extra-modules>
The image support the FTP to access the "/usr/share/nginx/html" folder. It is used to support the web-application need to modify the content itself (or let user to upload their own content).
The default FTP User is
webmaster/zF9e27nBCAM55gZkhKWGehDf
Or you can build your own setting by using the Dockerfile.
Beware, you have to manage the user, group and related security setting/concern by yourself.
No tags have been pushed to this repository yet.