diff --git a/Dockerfile b/Dockerfile index dbcee3c40..2ea9588f4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,6 +80,18 @@ RUN curl -fsSL https://astral.sh/uv/install.sh | sh ENV PATH="/root/.local/bin:${PATH}" RUN uv python install --default "${PYTHON_VERSION}" && rm -rf /root/.cache/uv +# Point each toolchain at its cache volume (internal/storage). Unset, pnpm puts +# its store on the worktree's filesystem, inside the repository the agent commits. +ENV GOMODCACHE=/data/cache/go/mod \ + GOCACHE=/data/cache/go/build \ + npm_config_cache=/data/cache/node \ + npm_config_store_dir=/data/cache/pnpm \ + DENO_DIR=/data/cache/deno \ + BUN_INSTALL_CACHE_DIR=/data/cache/bun \ + PIP_CACHE_DIR=/data/cache/pip \ + UV_CACHE_DIR=/data/cache/pip \ + CARGO_HOME=/data/cache/cargo + COPY --from=builder /usr/local/bin/archie-agent /usr/local/bin/archie-agent # The daemon injects NATS_URL and, when configured, NATS_TOKEN.