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

slim down docker file #2385

Open
FFroehlich opened this issue Mar 23, 2024 · 3 comments
Open

slim down docker file #2385

FFroehlich opened this issue Mar 23, 2024 · 3 comments

Comments

@FFroehlich
Copy link
Member

pip install should use --no-cache-dir to minimise image size.

@dweindl
Copy link
Member

dweindl commented Mar 23, 2024

To save a couple MB more: add apt-get clean and rm -rf /var/lib/apt/lists/*

@FFroehlich
Copy link
Member Author

rm -rf /var/lib/apt/lists/*

limits downstream reusability though and only saves ~200B, see https://gist.github.com/marvell/7c812736565928e602c4

@dweindl
Copy link
Member

dweindl commented Mar 23, 2024

only saves ~200B

48M /var/lib/apt/lists/

limits downstream reusability

not quite true. just needs an apt update before installing additional apt packages.

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