fix: persist workspace Python environments

This commit is contained in:
wuyang
2026-07-26 20:20:37 +08:00
parent bc30a480ad
commit 2fbb5698ac
14 changed files with 170 additions and 20 deletions
+8
View File
@@ -45,6 +45,14 @@ RUN groupadd --gid 1000 agent \
&& mkdir -p /workspace \
&& chown 1000:1000 /workspace
ENV HOME=/workspace/.agent/home \
XDG_CACHE_HOME=/workspace/.agent/cache \
PIP_CACHE_DIR=/workspace/.agent/cache/pip \
PYTHONUSERBASE=/workspace/.agent/home/.local \
NPM_CONFIG_CACHE=/workspace/.agent/cache/npm \
NPM_CONFIG_PREFIX=/workspace/.agent/npm \
PATH=/workspace/.venv/bin:/workspace/.agent/home/.local/bin:/workspace/.agent/npm/bin:${PATH}
WORKDIR /workspace
USER 1000:1000
ENTRYPOINT ["/usr/bin/tini", "--"]