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-recommendsto remove unnecessaryaptpackages, 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.