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: Switch to Puppeteer's bundled Chromium with proper setup

LearningCircuit17ebe3cc88d9
diff --git a/Dockerfile b/Dockerfile
index c1134aa74b..e2db93b3df 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -42,9 +42,7 @@ RUN apt-get update && apt-get install -y \
curl \
xauth \
xvfb \
- wget \
- gnupg \
- # Additional dependencies for Chrome
+ # Dependencies for Chromium
fonts-liberation \
libasound2 \
libatk-bridge2.0-0 \
@@ -65,10 +63,6 @@ RUN apt-get update && apt-get install -y \
xdg-utils \
&& curl -fsSL https://deb.nodesource.com/setup_lts.x | bash - \
&& apt-get install -y nodejs \
- && wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
- && echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list \
- && apt-get update \
- && apt-get install -y google-chrome-stable \
&& rm -rf /var/lib/apt/lists/*
# Copy test package files and install npm dependencies
@@ -83,12 +77,12 @@ WORKDIR /install
# Install browser automation tools and dependencies
RUN playwright install --with-deps chromium
-# Configure Puppeteer to skip download and use system Chrome
-ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
-ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/google-chrome-stable
+# Set up Puppeteer to download Chromium during npm install
+ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=false
+ENV PUPPETEER_CACHE_DIR=/app/chrome-cache
-# Verify Chrome installation
-RUN google-chrome-stable --version
+# Create chrome cache directory with proper permissions
+RUN mkdir -p /app/chrome-cache && chmod -R 777 /app/chrome-cache
# Install the package using PDM
RUN pdm install --check --no-editable
diff --git a/tests/api_tests_with_login/puppeteer_config.js b/tests/api_tests_with_login/puppeteer_config.js
index a5cc8cb6a3..00e92a2f95 100644
--- a/tests/api_tests_with_login/puppeteer_config.js
+++ b/tests/api_tests_with_login/puppeteer_config.js
@@ -12,15 +12,11 @@ function getPuppeteerLaunchOptions(additionalOptions = {}) {
'--disable-accelerated-2d-canvas',
'--no-first-run',
'--no-zygote',
- '--single-process', // <- This one is important for Docker
'--disable-gpu'
]
};
- // In CI/Docker, use the system Chrome if PUPPETEER_EXECUTABLE_PATH is set
- if (process.env.PUPPETEER_EXECUTABLE_PATH) {
- defaultOptions.executablePath = process.env.PUPPETEER_EXECUTABLE_PATH;
- }
+ // Remove --single-process as it can cause issues with some operations
return { ...defaultOptions, ...additionalOptions };
}
diff --git a/tests/ui_tests/puppeteer_config.js b/tests/ui_tests/puppeteer_config.js
index a04b1e1afa..41ecb9dd1a 100644
--- a/tests/ui_tests/puppeteer_config.js
+++ b/tests/ui_tests/puppeteer_config.js
@@ -12,15 +12,11 @@ function getPuppeteerLaunchOptions(additionalOptions = {}) {
'--disable-accelerated-2d-canvas',
'--no-first-run',
'--no-zygote',
- '--single-process', // <- This one is important for Docker
'--disable-gpu'
]
};
- // In CI/Docker, use the system Chrome if PUPPETEER_EXECUTABLE_PATH is set
- if (process.env.PUPPETEER_EXECUTABLE_PATH) {
- defaultOptions.executablePath = process.env.PUPPETEER_EXECUTABLE_PATH;
- }
+ // Remove --single-process as it can cause issues with some operations
return { ...defaultOptions, ...additionalOptions };
}