-
Notifications
You must be signed in to change notification settings - Fork 11
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
Chore: reduce attack surface and size for Docker image #13
Conversation
hi, thanks for opening this. What's the size gain with this? |
Hi @gquintard, I updated the differences between the builds before and after the improvement as below:
Without
I hope you find this additional information helpful.
|
after looking at the output of All in all the size gain is negligible, the security benefit is about zero, but on my laptop, the image build a lot faster (3:15 down from 5:45), I'll take that win. Merged, thanks! |
Hi,
This pull request includes a small improvement for the Dockerfile, which should help improve the security of container and reduce the risk of potential attacks.
In detail:
--no-install-recommends
to remove unnecessaryapt
packages, that were not needed for the container's functionality. Not only can this change trim your image size but it also can also reduce the attack surface.I hope that you find them useful. Please let me know if you have any concerns.
Thank you.