Use the official PHP Docker image
masterphp repository contains the source code for the Docker Official Image for PHP. Note that this is the Docker-maintained official image, which is distinct from images provided directly by the PHP upstream project. For full usage instructions, detailed configuration options, and information on how to use the image in your projects, refer to the Docker Hub page for PHP.