mirror of
https://github.com/Dasemu/chatgpt-imagegen-mcp.git
synced 2026-11-26 15:26:21 +00:00
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>
9 lines
256 B
TOML
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"
|