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

Can we add more lib packages like CV2 or Pilllow ? #56

Open
nhha1602 opened this issue Aug 31, 2024 · 3 comments
Open

Can we add more lib packages like CV2 or Pilllow ? #56

nhha1602 opened this issue Aug 31, 2024 · 3 comments

Comments

@nhha1602
Copy link

nhha1602 commented Aug 31, 2024

Hi,
I'm new with sandbox, I just want to know if I can add more lib packages like CV2 or Pillow for image processing ?
If yes, please show me how.

Thanks and regards.

@Korayem
Copy link

Korayem commented Sep 2, 2024

Related #37

@sharptornadoqsh
Copy link

1、find the linux pakages the CV2 or Pillow needs and add them in conf file which shows in the FAQ

2、find the system call CV2 or Pillow needs and add it in the https://github.com/langgenius/dify-sandbox/blob/main/internal/static/python_syscall/syscalls_amd64.go

if you do not konw you can add all the sys call 。such as from number 0 to 500 0,1,2,3,4,5...500

3、add the linxu package and apt-install them in the docker file

4、build the source code and rewrite the dockfile file(pip3 install your package )

@nhha1602 nhha1602 changed the title Can we add more lib packages like CV3 or Pilllow ? Can we add more lib packages like CV2 or Pilllow ? Sep 4, 2024
@nhha1602
Copy link
Author

nhha1602 commented Sep 4, 2024

1、find the linux pakages the CV2 or Pillow needs and add them in conf file which shows in the FAQ

2、find the system call CV2 or Pillow needs and add it in the https://github.com/langgenius/dify-sandbox/blob/main/internal/static/python_syscall/syscalls_amd64.go

if you do not konw you can add all the sys call 。such as from number 0 to 500 0,1,2,3,4,5...500

3、add the linxu package and apt-install them in the docker file

4、build the source code and rewrite the dockfile file(pip3 install your package )

These are the steps for creating new dockerfile of sandbox to support cv2/Pillow or these are solutions for it?

Thank you :)

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

3 participants