Skip to content

Conversation

w8mej
Copy link
Contributor

@w8mej w8mej commented Nov 30, 2023

When you don't use apt-get's --no-install-recommends flag, you install all the recommended packages for the package and the package itself. By implementing this parameter, I was able to decrease my image size by ~20% on my various arch. builds. I haven't calculated the build time savings yet.

An older reference to why this can be meaningful for this project - https://ubuntu.com/blog/we-reduced-our-docker-images-by-60-with-no-install-recommends .

When you don't use apt-get's --no-install-recommends flag, you install all the recommended packages for the package and the package itself. By implementing this parameter, I was able to decrease my image size by ~20% on my various arch. builds.

Signed-off-by: John Menerick <coding@haxx.ninja>
@deadbits
Copy link
Owner

deadbits commented Dec 1, 2023

This is awesome! I admit the Docker container was a bit of an afterthought but I’m happy to take any improvements.

I’m out of town until Sunday but I’ll fully review this (and your other issues/PRs, thanks again!) once I get back and get them merged in

@w8mej
Copy link
Contributor Author

w8mej commented Dec 1, 2023

Anytime. Glad I could help. Keep up the great work!

@deadbits deadbits merged commit 83f48f1 into deadbits:main Dec 6, 2023
@deadbits deadbits self-assigned this Dec 6, 2023
@deadbits deadbits added the docker label Dec 6, 2023
@w8mej
Copy link
Contributor Author

w8mej commented Dec 7, 2023

Thank you! Have a great week.

@w8mej w8mej deleted the patch-2 branch December 7, 2023 22:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants