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

Docker image文件很大 #452

Open
socratesng opened this issue Sep 14, 2024 · 3 comments
Open

Docker image文件很大 #452

socratesng opened this issue Sep 14, 2024 · 3 comments

Comments

@socratesng
Copy link
Contributor

基于现有docker file来build image的时候,基于python:3.12.0-bookworm的image似乎是debian based的,有1 G大。有没有可能换成slim或者alphine的?

@dataabc
Copy link
Owner

dataabc commented Sep 15, 2024

感谢反馈。我现在没办法调试,不清楚,猜测您的方案应该可行。您可以尝试下,如果可以也欢迎pull request,再次感谢。

@socratesng
Copy link
Contributor Author

谢谢建议!

在QNAP和PVE的Arch-VM里面都尝试过用python-alpine作为base image来build docker,都可以正常运行爬取,image size可以降到100 MB以内。

@dataabc
Copy link
Owner

dataabc commented Sep 16, 2024

感谢反馈和贡献代码。

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