A tested, production ready PHP docker image
100K+
tag:
8.2 is the php image fixed to the 8.1 version
8.1 is the php image fixed to the 8.1 version
8.0.5 is the php image fixed to the 8.0.5 version
7.4 is the php image fixed to the 7.4 version no major releases
alpine is the lightest image with the latest current version of PHP based on alpine linux
latest is the image with the latest current version of PHP based on debian
stretch is the debian stretch based os with support of php 7.0
These tags rebuild PHP from the PHP security team's source backports for CVE-2026-109618 and CVE-2026-109619. The source commits are pinned in their Dockerfiles:
| Image tag | PHP source branch | Commit |
|---|---|---|
7.4-backported | PHP-7.4-CVE-2026-109618-109619 | 712e60f9edfd03f0960fc4fc3c2c375f42b90aa2 |
8.1-backported | PHP-8.1-CVE-2026-109618-109619 | 1d7dec178a094e6e75b229ce22754045f8c6070a |
8.1-backported-arm | PHP-8.1-CVE-2026-109618-109619 | 1d7dec178a094e6e75b229ce22754045f8c6070a |
The 7.4 backport is built for linux/amd64 only.
Build locally from the repository root with:
docker build --platform linux/amd64 -t pixartprinting/php:7.4-backported ./7.4-backported
docker build --platform linux/amd64 -t pixartprinting/php:8.1-backported ./8.1-backported
docker build --platform linux/arm64 -t pixartprinting/php:8.1-backported-arm ./8.1-backported-arm
The builds refresh PECL channel metadata. Xdebug is pinned to 3.1.6 for PHP 7.4; Redis is installed from the official PECL archive and SHA-256-verified (6.0.2 for PHP 7.4, 6.3.0 for PHP 8.1).
These are emergency mitigations for end-of-life PHP branches, not a return to upstream support. Plan to migrate to a supported PHP release or retire the project.
The PHP version string follows the backported source branch (PHP 7.4 currently
reports 7.4.34-dev). Verify the applied source backport by inspecting the
image label:
docker image inspect --format '{{ index .Config.Labels "net.php.php-src.commit" }}' pixartprinting/php:8.1-backported
Content type
Image
Digest
sha256:bef1b27f5…
Size
325.3 MB
Last updated
6 months ago
docker pull pixartprinting/php