PHP image based on the official PHP alpine with composer and prestissimo pre-installed
10K+
docker pull robbrazier/php:${version}
There is a tag for each directory contained within this repository (see here for a full list of tags)
To avoid user permission errors when running this container with a mounted volume, there are two environment variables that can be set:
PUID=1001 # User ID [default: root]
PGID=1001 # Group ID [ default: root]
Usually this will be set to the User ID and Group ID of your current user.
On MacOS/Linux this can be found by running
id -u # User ID
id -g # Group ID
I don't have a Windows machine, so am not 100% sure what the values would be for Windows (hopefully someone can assist with this :smile:)
This Image uses the same entrypoint and command as the official php image (i.e. if you just run docker run -it robbrazier/php, a PHP REPL will open)
The default working directory is set to /var/app, however this can be easily modified.
This repository is set to build every month, so that the images are updated with the latest versions of composer, prestissimo and php
Content type
Image
Digest
sha256:6422d8b49…
Size
37.3 MB
Last updated
almost 4 years ago
docker pull robbrazier/php