Several images for run PHP inside your project, test ou production environment
100K+
See full documentation at: https://opensource.byjg.com/devops/docker-php
A complete and small PHP Docker image based on Alpine Linux and run on the archictectures
The Docker ByJG PHP Images has several bundled images based on PHP in different versions.
The PHP images are ready to use in:
| Version | Latest Version | Monthly Builds |
|---|---|---|
| 8.3 | 8.3.1 | yes |
| 8.2 | 8.2.14 | yes |
| 8.1 | 8.1.27 | yes |
| 8.0 | 8.0.30 | - |
| 7.4 | 7.4.33 | - |
| 7.3 | 7.3.33 | - |
| 7.2 | 7.2.33 | - |
| 7.1 | 7.1.33 | - |
| 7.0 | 7.0.33 | - |
| 5.6 | 5.6.40 | - |
Five different images for each PHP Version
Since January 2021 de tag convention is:
byjg/php:<PHP_VERSION>-<TYPE>[-YYYY.MM]
Where:
<MAJOR>.<MINOR>, e.g 8.2base, cli, fpm, fpn-nginx, fpm-apacheThe images without YYYY-MM can be updated to the latest PHP version and new features. The images with YYYY-MM are immutable
e.g.
byjg/php:8.2-fpm
byjg/php:8.2-fpm-2023.01
Here a list of environment variables.
Below a table with images uncompressed
| Build Type | Uncompressed Size |
|---|---|
| base | ~135MB |
| cli | ~154MB |
| fpm | ~139MB |
| fpm-nginx | ~154MB |
| fpm-apache | ~154MB |
Detailed instructions can be found here.
Content type
Image
Digest
sha256:2cf093151…
Size
65.9 MB
Last updated
8 days ago
docker pull byjg/php:8.4-fpm-nginx-2026.09