Supported tags and respective Dockerfile links
This repository contains Dockerfile of PHP running on Alpine Linux for Docker's automated build published to the public Docker Hub Registry.
This is built on top of alpine:3.6, so make sure you're building against
the latest version of that:
$ docker pull alpine:3.6
Download automated build from public Docker Hub Registry: docker pull gleez/php
(alternatively, you can build an image from Dockerfile: docker build -t="gleez/php" github.com/gleez/docker-images/php)
docker run -it -d gleez/php
You can add a workspace as a volume directory with the argument -v /your-path/workspace/:/var/www/html/ like this :
docker run -it --rm --name my-running-script -v "$PWD":/workspace gleez/php php your-script.php
Get the latest version from github
git clone https://github.com/gleez/docker-images
cd docker-images/php
Build it
sudo docker build --force-rm=true --tag="$USER/php:latest" .
And run
sudo docker run -d -v /your-path/workspace/:/var/www/html/ $USER/php:latest
Enjoy !!
Content type
Image
Digest
Size
66.5 MB
Last updated
almost 9 years ago
docker pull gleez/php