Files
dasemuandClaude Sonnet 5 722ea15f36 fix: clean stale X11 lock files before starting Xvfb
docker stop/start reuses the same container filesystem (not tmpfs
here), so a stale .X99-lock and X11 socket from a previous run make
Xvfb fail to bind silently on the next start — the server then runs
with no display at all and every browser launch fails.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-10-08 21:16:12 +02:00

9 lines
256 B
TOML

[phases.setup]
aptPkgs = ["xvfb"]
[phases.install]
cmds = ["npm ci", "npx playwright install --with-deps chromium"]
[start]
cmd = "rm -f /tmp/.X99-lock /tmp/.X11-unix/X99; Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp & sleep 2 && DISPLAY=:99 npm start"