This is a Dockerfile for PHP with nginx, composer, nodejs
To pull from hub.docker.com:
docker pull saderi/php-nginx:latest
To simply run the container:
docker run -d -p 8000:80 --name php-nginx saderi/php-nginx:latest
Then you can hit http://localhost:8000 or http://host-ip:8000 in your browser
To run the container with volume:
Defualt webroot => WEBROOT=/var/www/html
docker run -d -p 8000:80 --name php-nginx -v /your/content/path:/var/www/html saderi/php-nginx:latest
Change php-nginx if you changed it.
docker exec -it php-nginx bash
Content type
Image
Digest
sha256:c0bda9731…
Size
256.6 MB
Last updated
about 3 years ago
docker pull saderi/php-nginx:7.2-buster