php-nginx
Robust Docker image of PHP with Nginx, based on official software and supporting amd64 and arm64.
10K+
This repository contains a Docker image for running high-performance PHP web applications. It is optimized for speed, efficiency, and includes a comprehensive set of tools and libraries commonly used in web development.
If you identify a security breach, please report it as soon as possible under the guidelines outlined in our security policy.
This image is:
cosign verify and cosign verify-attestationTo verify the image and its provenance (example):
cosign verify \
--certificate-identity-regexp "github.com/fontebasso/.+" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
docker.io/fontebasso/php-nginx@sha256:03c339da2342dd29c04a4c20da486150efc38f93a3aaf675fdf7a08899d8cb56
cosign verify-attestation \
--type=https://slsa.dev/provenance/v0.2 \
--certificate-identity-regexp "github.com/slsa-framework/.+" \
--certificate-oidc-issuer "https://token.actions.githubusercontent.com" \
docker.io/fontebasso/php-nginx@sha256:03c339da2342dd29c04a4c20da486150efc38f93a3aaf675fdf7a08899d8cb56
No manual setup or keys required — Cosign uses GitHub Actions identity.
To pull the image from Docker Hub, run:
docker pull fontebasso/php-nginx:latest
To run a container using this image, execute:
docker run -d -p 8080:80 fontebasso/php-nginx:latest
This will expose Nginx on port 8080 of your local machine.
You can customize the PHP configuration by editing the custom_params.ini file and copying it to the appropriate directory:
COPY ./custom_params.ini /opt/php/etc/php/conf.d/php-04-custom-params.ini
/app: The application code./env: Environment variables directory./etc/service: Runit service definitions.To build the Docker image locally, clone this repository and run:
git clone https://github.com/fontebasso/docker-php-nginx.git
cd docker-php-nginx
docker build -t fontebasso/php-nginx:latest .
This repository is configured to build for:
linux/amd64linux/arm64Via GitHub Actions with provenance and public signing.
Pull requests are welcome! Please fork the repository and submit your improvements.
We follow standard open-source contribution guidelines, and are happy to receive help improving this project.
For questions or support, please open an issue or contact the maintainers.
This project is licensed under the MIT License. See the LICENSE file for details.
Content type
Image
Digest
sha256:457401c9b…
Size
1.4 MB
Last updated
4 months ago
docker pull fontebasso/php-nginx:sha256-5bfa120a9f4bc896e4adaed544a55f42845509d9b71d05fd246ca08ffb9e55db.att