forked from RoushTech/docker
HOME=/root survives the privilege drop, so the embedded Mercure hub cannot start #24
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
HOME=/rootis baked into the image and survives the drop toapp, so Caddy resolves itsdata directory to
/root/.local/share/caddyand cannot create it.This blocks
FRANKENPHP_MERCURE=Onoutright — the embedded hub's bolt transport needsthat directory, and the server refuses to start without it:
Reproduced with
frankenphp php-server -r /app/public --mercureunderchpst -u app.Suggested fix
Set
XDG_DATA_HOME(orHOME) to a directory owned by the server user, e.g.Worth doing in the base image alongside the
FRANKENPHP_MERCUREsupport itself, since theflag cannot work without it.
Related: #22 (the privilege drop that makes root-owned state unreachable).