Skip to content

Standardize frankenphp images on /app instead of /var/www/html - #1

Merged
michaelaguiar merged 1 commit into
mainfrom
workdir-track-app-fix
Sep 3, 2026
Merged

michaelaguiar merged 1 commit into
mainfrom
workdir-track-app-fix

Conversation

@michaelaguiar

Copy link
Copy Markdown
Member

The frankenphp lineage (8.2-8.5) was the only variant in this repo using /var/www/html as WORKDIR/docroot base; every cli and legacy fpm image already uses /app. The Caddyfile's root {$SERVER_ROOT:public/} is resolved relative to WORKDIR, so nothing in FrankenPHP requires /var/www/html specifically.

The mismatch breaks dev environments that bind-mount source into /app by convention (matching the rest of the family) -- edits silently land in a directory Caddy never reads, since the frankenphp image actually serves from /var/www/html.

The frankenphp lineage (8.2-8.5) was the only variant in this repo using
/var/www/html as WORKDIR/docroot base; every cli and legacy fpm image already
uses /app. The Caddyfile's `root {$SERVER_ROOT:public/}` is resolved relative
to WORKDIR, so nothing in FrankenPHP requires /var/www/html specifically.

The mismatch breaks dev environments that bind-mount source into /app by
convention (matching the rest of the family) -- edits silently land in a
directory Caddy never reads, since the frankenphp image actually serves from
/var/www/html.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GVBW8GNevJTgq5os2cMajR
@michaelaguiar
michaelaguiar merged commit 123e078 into main Sep 3, 2026
2 checks passed
@michaelaguiar
michaelaguiar deleted the workdir-track-app-fix branch September 3, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant