Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

沙箱pip源代码提交

yt20263d3e40ad1d3c
diff --git a/docker/Dockerfile.sandbox b/docker/Dockerfile.sandbox
index 18972ee6f6..89713383cd 100644
--- a/docker/Dockerfile.sandbox
+++ b/docker/Dockerfile.sandbox
@@ -17,6 +17,8 @@ RUN uv pip install --system --break-system-packages \
COPY docker/sandbox-entrypoint.sh /usr/local/bin/sandbox-entrypoint.sh
RUN chmod +x /usr/local/bin/sandbox-entrypoint.sh
+RUN touch /etc/pip.conf && chmod 644 /etc/pip.conf
+
EXPOSE 8321
EXPOSE 8322
diff --git a/jiuwenbox/src/jiuwenbox/configs/enterprise-policy.yaml b/jiuwenbox/src/jiuwenbox/configs/enterprise-policy.yaml
index 6ef11193ef..50a24a0c4f 100644
--- a/jiuwenbox/src/jiuwenbox/configs/enterprise-policy.yaml
+++ b/jiuwenbox/src/jiuwenbox/configs/enterprise-policy.yaml
@@ -81,6 +81,9 @@ filesystem_policy:
- host_path: "/etc/host.conf"
sandbox_path: "/etc/host.conf"
mode: "ro"
+ - host_path: "/etc/pip.conf"
+ sandbox_path: "/etc/pip.conf"
+ mode: "ro"
- host_path: "/etc/passwd"
sandbox_path: "/etc/passwd"
mode: "ro"