Skip to content

The agent that grows with you

fix(docker): ship the build's uv cache at the PM seed path

ethernetf4e70b9d843c
diff --git a/Dockerfile b/Dockerfile
index f93bfbe7dc2..e3d11031c8d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -280,7 +280,13 @@ FROM runtime_base AS python_deps
# Source binding is created after the source copy below.
COPY pyproject.toml uv.lock ./
RUN touch ./README.md
+# --cache puts uv's cache at /opt/hermes/uv-cache, the seed path that
+# pm.packages.uv_cache_dir() merges into $HERMES_HOME/cache/uv on first use.
+# Do not leave the cache at its default: HERMES_HOME is not set yet in this
+# stage, so the default is /root/.hermes/cache/uv, which nothing reads. A plugin
+# install then runs with an empty cache and builds python-olm from source.
RUN python3 -m pm.build_env --source /opt/hermes --python /usr/local/bin/python3 \
+ --cache /opt/hermes/uv-cache \
--out /opt/hermes/.venv --no-install-project --sealed --record-selection \
--extra all --extra messaging --extra otlp --extra anthropic --extra bedrock \
--extra azure-identity --extra matrix --extra google-chat