-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 #965
Conversation
Do you have a list of which packages we currently have that this removes? In this case, we included
So, unless we know for certain that none of the (The way Debian maintainers usually phrase this is that when you choose not to install |
Hi @tianon, I would like to update the differences between the builds before and after the improvement as below:
If the mecab-* packages are intentionally installed, I suggest that their names should be listed in the As quoted from CIS Docker Benchmark v1.5.0:
|
IPA most likely stands for International Phonetic Alphabet. These do not appear to be essential to the function of this image, and moreover may only be needed by Japanese users. Those users should add these packages themselves if they need them. Adding |
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.