Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

Use `uv sync --locked` in Dockerfile to prevent silent dependency re-resolution (#963)

Matthieu B24546160dc25
diff --git a/Dockerfile b/Dockerfile
index 4c4c48b77..3bb0fe00b 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -43,8 +43,10 @@ COPY src/ src/
COPY third_party/ third_party/
# Install project and dependencies (triggers setup.py artifact builds + build_extension).
+# --locked ensures the lockfile is used and is consistent with pyproject.toml,
+# preventing silent re-resolution that could pull unexpected package versions.
RUN --mount=type=cache,target=/root/.cache/uv,id=uv-${TARGETPLATFORM} \
- uv sync --no-editable
+ uv sync --locked --no-editable
# Stage 4: runtime
FROM python:3.13-slim-trixie