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: Allow npm commands to be cached by docker when building the image (#1884)

Michal Golonka34ff04ff84fa
diff --git a/Dockerfile b/Dockerfile
index c3f09f089f..7813a5858d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -76,16 +76,17 @@ FROM builder-base AS builder
# Install npm dependencies, build frontend, and install Python dependencies
# PDM will automatically select the correct SQLCipher package based on platform
# Using npm ci for reproducible builds with lockfile integrity verification
-RUN npm ci \
- && npm run build \
- && for i in 1 2 3; do \
- if pdm install --prod --no-editable; then \
- break; \
- else \
- echo "PDM install attempt $i failed, retrying in 15s..."; \
- sleep 15; \
- fi; \
- done
+# These RUNs are separate for caching
+RUN npm ci
+RUN npm run build
+RUN for i in 1 2 3; do \
+ if pdm install --prod --no-editable; then \
+ break; \
+ else \
+ echo "PDM install attempt $i failed, retrying in 15s..."; \
+ sleep 15; \
+ fi; \
+ done
####