Dockerfile to build a Web server , based PHP7-FPM and Nginx .
-
Clone repo
git clone https://github.com/likol/docker-php7-fpm.git
-
Build docker image
cd docker-php7-fpm make build
-
Quick start container
make run
-
Test php -v
make test
-
Other Help
make
Current Version:
-
PHP: latest Nightly Build.
-
Nginx: stable 1.8.0.
launch the image using the docker command line,
docker run --name php7 -p 8080:80 -p 8022:22 -v $HOME/html:/var/www/html -d likol1227/php7
If you want login container, the default username and password:
-
username:
root
-
password:
docker.io
ssh -p 8022 root@localhost