Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible for user to customize python dependencies to isolate envs of code execution? #91

Open
shaunyang12 opened this issue Sep 25, 2024 · 1 comment

Comments

@shaunyang12
Copy link

Well it sounds like how a traditional sandbox service should work: Start a new container -> run -> delete it.
Back to dify-sandbox, when running python code, are we able to achieve similar goals?
My thought is to create users' own python venvs and run their codes inside: Create a venv -> run code inside -> delete it,

@mqfs
Copy link

mqfs commented Dec 12, 2024

I recommend you to build a docker image using system-level python not venv. By installing third-party packages via apt-get if you use ubuntu, then you can easily achieve your goals. By the way, don't forget to modify all python related path in conf/config.yaml.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants