fix: persist workspace Python environments
This commit is contained in:
@@ -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", "--"]
|
||||
|
||||
Reference in New Issue
Block a user