From d86ec55f98f319c53dbbb41e9f482b9cd0e1150f Mon Sep 17 00:00:00 2001 From: Michael Aguiar Date: Thu, 26 Nov 2026 09:15:47 -0700 Subject: [PATCH 1/3] README: the dev image has the base extensions, not the WordPress set Dockerfile.dev has never installed PHP extensions; the seven the README listed come from Dockerfile.wordpress. Describe what dev really adds, move the extension list to the wordpress variant, and list wordpress-dev as the dev image that has them. Refs ALI-1111 --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ed5b340..1e1c56d 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,9 @@ docker pull ghcr.io/aliasproject/php:8.4-frankenphp - **cli** — the PHP CLI with unlimited execution time, built on the official `php:-cli-alpine` images, so each rebuild (including the weekly one) picks up the latest php.net patch release. PHP's ini files are in `/usr/local/etc/php` (`conf.d/` for overrides). The versions are identical apart from PHP itself: a minimal extension set (`pdo_mysql`, `bcmath`, `intl`, `pcntl`, `zip`, etc.), a 512M memory limit, and an unprivileged `appuser` in group `0`. Backend and library extensions (`mysqli`, `gd`, `imagick`, `redis`, `igbinary`, …) belong in a derived image such as `php/8.4/cli/Dockerfile.wordpress`. - **frankenphp** — FrankenPHP serves PHP directly through Caddy; no separate web server. Minimal extension set, non-root by default, mail sent through `msmtp`, Composer baked in, `HEALTHCHECK` against Caddy's admin API. -- **frankenphp (dev)** — the FrankenPHP base with extra extensions (`mysqli`, `gd`, `exif`, `imagick`, `redis`, `igbinary`, `soap`) for local development. -- **frankenphp (wordpress)** — the FrankenPHP base with the same extensions as `dev`, plus a hardening policy suited to running WordPress (see below). +- **frankenphp (dev)** — the FrankenPHP base set up for local development: the same PHP extensions as the base image (no extras), plus `git` and `npm`, OPcache checking files for changes on every request, and `PHP_DISABLE_FUNCTIONS` cleared so dev tooling can shell out. +- **frankenphp (wordpress)** — the FrankenPHP base with extra extensions (`mysqli`, `gd`, `exif`, `imagick`, `redis`, `igbinary`, `soap`), plus a hardening policy suited to running WordPress (see below). +- **frankenphp (wordpress-dev)** — the `wordpress` image with the same local-development changes as `dev`. Use it, not `dev`, for local work that needs the extra extensions. Every frankenphp image is configurable via environment variables — `PHP_MEMORY_LIMIT`, `PHP_OPCACHE_*`, `PHP_UPLOAD_MAX_FILESIZE`, etc. — see each Dockerfile's `ENV` block for the defaults. The cli images have no such variables; override PHP settings with an ini file in `/usr/local/etc/php/conf.d/` or `php -d`. From 582baa6a04a15ab7f9305916e3c57c7e69169eaf Mon Sep 17 00:00:00 2001 From: Michael Aguiar Date: Thu, 26 Nov 2026 09:21:17 -0700 Subject: [PATCH 2/3] README: add wordpress-dev to the image matrix CI builds and publishes wordpress-dev for 8.2-8.5, and the variants list now points local WordPress work at it, so the matrix lists it too. Refs ALI-1111 --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1e1c56d..a028e37 100644 --- a/README.md +++ b/README.md @@ -4,12 +4,12 @@ Docker images for PHP, published to `ghcr.io/aliasproject/php`. The primary offe ## Image matrix -| PHP | CLI | FrankenPHP | FrankenPHP (dev) | FrankenPHP (WordPress) | -|------|:---:|:----------:|:-----------------:|:------------------------:| -| 8.2 | | ✅ | ✅ | ✅ | -| 8.3 | ✅ | ✅ | ✅ | ✅ | -| 8.4 | ✅ | ✅ | ✅ | ✅ | -| 8.5 | ✅ | ✅ | ✅ | ✅ | +| PHP | CLI | FrankenPHP | FrankenPHP (dev) | FrankenPHP (WordPress) | FrankenPHP (WordPress dev) | +|------|:---:|:----------:|:-----------------:|:------------------------:|:----------------------------:| +| 8.2 | | ✅ | ✅ | ✅ | ✅ | +| 8.3 | ✅ | ✅ | ✅ | ✅ | ✅ | +| 8.4 | ✅ | ✅ | ✅ | ✅ | ✅ | +| 8.5 | ✅ | ✅ | ✅ | ✅ | ✅ | Tags follow `-` (e.g. `8.4-frankenphp-wordpress`), each also published as `-latest` and as `-` for the commit it was built from. Every image is rebuilt weekly (Mondays 10:00 UTC) to pick up base-image and Alpine package updates, which also refreshes the `-` tag of the current commit; pin by digest (`@sha256:…`) for a byte-for-byte fixed image. The amd64 image of every variant is booted and checked (PHP version, extensions, non-root, healthy and serving PHP for the frankenphp images) before it gets any tag, so a build that doesn't start never replaces `-latest`; the check is `.github/scripts/smoke-test.sh`. The arm64 images are built and published but not booted. The frankenphp images stay on their pinned FrankenPHP version, so a new FrankenPHP release (and the PHP version it ships) still needs `FRANKENPHP_VERSION` bumped in their Dockerfiles. From c4bb05612c941f9378cda9334d59b4a3559742e3 Mon Sep 17 00:00:00 2001 From: Michael Aguiar Date: Thu, 26 Nov 2026 09:24:58 -0700 Subject: [PATCH 3/3] README: say where PHP_DISABLE_FUNCTIONS is cleared, and name the wordpress-dev tag The base image already leaves PHP_DISABLE_FUNCTIONS empty, so clearing it only matters in wordpress-dev, which undoes the wordpress image's exec ban. Move the note there, mark wordpress-dev as local-only and give its tag. Refs ALI-1111 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a028e37..f8e2b5c 100644 --- a/README.md +++ b/README.md @@ -21,9 +21,9 @@ docker pull ghcr.io/aliasproject/php:8.4-frankenphp - **cli** — the PHP CLI with unlimited execution time, built on the official `php:-cli-alpine` images, so each rebuild (including the weekly one) picks up the latest php.net patch release. PHP's ini files are in `/usr/local/etc/php` (`conf.d/` for overrides). The versions are identical apart from PHP itself: a minimal extension set (`pdo_mysql`, `bcmath`, `intl`, `pcntl`, `zip`, etc.), a 512M memory limit, and an unprivileged `appuser` in group `0`. Backend and library extensions (`mysqli`, `gd`, `imagick`, `redis`, `igbinary`, …) belong in a derived image such as `php/8.4/cli/Dockerfile.wordpress`. - **frankenphp** — FrankenPHP serves PHP directly through Caddy; no separate web server. Minimal extension set, non-root by default, mail sent through `msmtp`, Composer baked in, `HEALTHCHECK` against Caddy's admin API. -- **frankenphp (dev)** — the FrankenPHP base set up for local development: the same PHP extensions as the base image (no extras), plus `git` and `npm`, OPcache checking files for changes on every request, and `PHP_DISABLE_FUNCTIONS` cleared so dev tooling can shell out. +- **frankenphp (dev)** — the FrankenPHP base set up for local development: the same PHP extensions as the base image (no extras), plus `git` and `npm`, and OPcache checking files for changes on every request. - **frankenphp (wordpress)** — the FrankenPHP base with extra extensions (`mysqli`, `gd`, `exif`, `imagick`, `redis`, `igbinary`, `soap`), plus a hardening policy suited to running WordPress (see below). -- **frankenphp (wordpress-dev)** — the `wordpress` image with the same local-development changes as `dev`. Use it, not `dev`, for local work that needs the extra extensions. +- **frankenphp (wordpress-dev)** — the `wordpress` image (e.g. `8.4-frankenphp-wordpress-dev`) with the same local-development changes as `dev`, and `PHP_DISABLE_FUNCTIONS` cleared so dev tooling can shell out again (the `wordpress` image disables `exec`, `system` and the rest). For local development only. Use it, not `dev`, for local work that needs the extra extensions. Every frankenphp image is configurable via environment variables — `PHP_MEMORY_LIMIT`, `PHP_OPCACHE_*`, `PHP_UPLOAD_MAX_FILESIZE`, etc. — see each Dockerfile's `ENV` block for the defaults. The cli images have no such variables; override PHP settings with an ini file in `/usr/local/etc/php/conf.d/` or `php -d`.