PHP-FPM base and dev images for Scaffold projects (intl, pdo_mysql, OPcache). Rebuilt weekly.
3.8K
PHP-FPM base images for Scaffold projects, built on the official
php image with the extensions a Scaffold app needs already compiled, so your
project's build doesn't have to. Multi-arch (linux/amd64, linux/arm64) and rebuilt weekly for security patches.
Source, issues and the build workflow: https://github.com/chrisshennan/scaffold-docker-images
| Tag | Image |
|---|---|
8.5, 8.5.12 | Production base image |
8.5-dev, 8.5.12-dev | Development / CI image. Never use in production. |
8.4, 8.4.27 | Production base image |
8.4-dev, 8.4.27-dev | Development / CI image. Never use in production. |
8.5 follows the latest 8.5.x release; 8.5.12 stays on that PHP patch version (the patch numbers shown here
were current when this was written). Both are rebuilt weekly for OS and
library security patches. The same applies to the -dev tags and to 8.4.chrisshennan/scaffold-php@sha256:....Production image (8.5, 8.4)
php:X-fpm (Debian) with the intl, pdo_mysql and OPcache extensions (pdo_mysql uses mysqlnd)acl and procpsphp.ini, with expose_php turned off (conf.d/scaffold-base.ini)Development image (8.5-dev, 8.4-dev): everything above, plus
git, unzip and Composerxdebug and pcov (both enabled; set XDEBUG_MODE to control xdebug, for example coverage or off)php.ini, with expose_php turned offFROM chrisshennan/scaffold-php:8.5 AS app
COPY . /app
# ... composer install, asset build, cache warm-up ...
For local development and CI, point the same project steps at the dev image:
ARG PHP_IMAGE=chrisshennan/scaffold-php:8.5
FROM ${PHP_IMAGE} AS app
# docker build --build-arg PHP_IMAGE=chrisshennan/scaffold-php:8.5-dev .
Or in compose.yaml, with the code bind-mounted:
services:
php:
image: chrisshennan/scaffold-php:8.5-dev
volumes:
- .:/app
Add your own PHP settings as extra files in /usr/local/etc/php/conf.d/; they load after scaffold-base.ini.
8.5.12 is no longer rebuilt, so follow
the minor tag (8.5) to keep receiving patches.MIT. See the LICENSE. The images also contain third-party software (PHP, Debian packages, xdebug, pcov, Composer) under its own licenses.
Copyright (c) 2026 Chris Shennan (https://chrisshennan.com)
Content type
Image
Digest
sha256:15b509b4d…
Size
220.4 MB
Last updated
3 days ago
docker pull chrisshennan/scaffold-php:8.5.13-dev