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(docker): chmod migrations dir in ldr-test stage too (#3650)

LearningCircuitf35e91de8d96
diff --git a/Dockerfile b/Dockerfile
index 05d0504437..9a9c047ec8 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -202,6 +202,13 @@ COPY --from=builder /install/src/local_deep_research/web/static/dist/ /install/s
# PDM will automatically select the correct SQLCipher package based on platform
RUN pdm install --no-editable
+# Mirror of the chmod in the `ldr` stage (see comment there). The ldr-test
+# stage does its own pdm install instead of COPYing the venv from `builder`,
+# so it doesn't inherit that fix and would otherwise trip
+# _validate_migrations_permissions on every login during UI tests.
+RUN find /install/.venv -type d -path '*/local_deep_research/database/migrations' \
+ -exec chmod -R go-w {} +
+
# Configure path to default to the venv python.
ENV PATH="/install/.venv/bin:$PATH"