
svcvit/dify-sandbox-pyA code executor for Dify that is compatible with the official sandbox API calls and dependency installation.
While the official sandbox has many permission settings and is a better sandboxing solution, in personal use cases where Dify's code nodes are entirely self-edited, there's no risk of code injection. This project aims to provide broader permissions and support for more dependencies (like numpy>2.0, matplotlib, scikit-learn) to reduce confusing error messages. This code was developed by referencing the official sandbox's API call examples.
In the official docker-compose.yaml, locate the sandbox image section and replace it with:
sandbox: # image: langgenius/dify-sandbox:0.2.10 image: svcvit/dify-sandbox-py:0.1.1
If you prefer to build the image yourself, you can clone this repository and run:
docker build -t dify-sandbox-py:local .
Then modify the sandbox image in docker-compose.yaml to use dify-sandbox-py:local
/docker/volumes/sandbox/dependencies/python-requirements.txt and restart the sandboxmanifest unknown 错误
TLS 证书验证失败
DNS 解析超时
410 错误:版本过低
402 错误:流量耗尽
身份认证失败错误
429 限流错误
凭证保存错误
来自真实用户的反馈,见证轩辕镜像的优质服务