website-builde / start-chrome.sh
Daviddolor's picture
Single-process Chromium, fixed visual-polish prompt, Docker config for HF Space
ec675f2
Raw
History Blame Contribute Delete
467 Bytes
#!/bin/bash
CHROME_BIN=$(find ~/.cache/ms-playwright -type f -name "chrome" -path "*chrome-linux*" 2>/dev/null | head -1)
if [ -z "$CHROME_BIN" ]; then
echo "ERROR: could not find Playwright's chrome binary under ~/.cache/ms-playwright"
exit 1
fi
echo "Using Chrome binary: $CHROME_BIN"
exec "$CHROME_BIN" \
--headless=new \
--remote-debugging-port=9222 \
--remote-debugging-address=0.0.0.0 \
--no-sandbox \
--disable-dev-shm-usage \
--disable-gpu