Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

fix(ci): use playwright JS API to resolve Chrome binary path (#3606)

LearningCircuit86f0f94403bc
diff --git a/Dockerfile b/Dockerfile
index 58f2456b9a..b1f2a7527c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -169,14 +169,15 @@ RUN for i in 1 2 3; do if npm ci; then break; else echo "npm ci attempt $i faile
RUN npx playwright install chromium
# Create a stable symlink to Chrome for Puppeteer/Lighthouse.
-# Use `npx playwright executable-path` to get the exact Chrome binary path from
-# the Node.js Playwright installation (avoids hard-coding revision directories).
-RUN CHROME_PATH=$(npx playwright executable-path chromium 2>/dev/null) && \
+# Use the Playwright JavaScript API (chromium.executablePath()) to resolve the
+# exact binary path from the installed Node.js Playwright version, avoiding
+# hard-coded revision directories that change across releases.
+RUN CHROME_PATH=$(node -e "console.log(require('playwright-core').chromium.executablePath())") && \
if [ -n "$CHROME_PATH" ] && [ -x "$CHROME_PATH" ]; then \
echo "Symlinking Chrome from: $CHROME_PATH"; \
ln -sf "$CHROME_PATH" /usr/local/bin/chrome; \
else \
- echo "WARNING: No Chrome binary found for Puppeteer/Lighthouse"; \
+ echo "WARNING: No Chrome binary found at $CHROME_PATH"; \
fi
# Set environment variables for Puppeteer to use Playwright's Chrome