mirror of
https://github.com/Dasemu/chatgpt-imagegen-mcp.git
synced 2026-11-26 07:16:21 +00:00
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>
This commit is contained in:
1 parent
9d54c4e1d8
commit
722ea15f36
1 file changed
+1
-1
+1
-1
@@ -5,4 +5,4 @@ aptPkgs = ["xvfb"]
|
||||
cmds = ["npm ci", "npx playwright install --with-deps chromium"]
|
||||
|
||||
[start]
|
||||
cmd = "Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp & sleep 2 && DISPLAY=:99 npm start"
|
||||
cmd = "rm -f /tmp/.X99-lock /tmp/.X11-unix/X99; Xvfb :99 -screen 0 1280x1024x24 -nolisten tcp & sleep 2 && DISPLAY=:99 npm start"
|
||||
Reference in new issue
Block a user