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: add PDM timeout and retry for Docker build reliability

LearningCircuitb80dd60dabf7
diff --git a/Dockerfile b/Dockerfile
index 7493c5a052..4d81bdaf65 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -49,6 +49,9 @@ RUN pip3 install --no-cache-dir pip==24.3.1 \
&& pip install --no-cache-dir pdm==2.26.2 "hishel<1.0.0" playwright==1.57.0
# disable update check
ENV PDM_CHECK_UPDATE=false
+# Increase PDM request timeout from default 15s to 120s for large packages (numpy, torch)
+# This helps prevent httpcore.ReadTimeout errors during CI network congestion
+ENV PDM_REQUEST_TIMEOUT=120
WORKDIR /install
COPY pyproject.toml pyproject.toml
@@ -71,7 +74,10 @@ FROM builder-base AS builder
# Using npm ci for reproducible builds with lockfile integrity verification
RUN npm ci \
&& npm run build \
- && pdm install --prod --no-editable
+ && for i in 1 2 3; do \
+ pdm install --prod --no-editable && break || \
+ { echo "PDM install attempt $i failed, retrying in 15s..."; sleep 15; }; \
+ done
####