chore: reduce attack surface and size for Docker image#77
chore: reduce attack surface and size for Docker image#77scriptmonkey merged 2 commits intomasterfrom unknown repository
Conversation
|
@bqcuong, thank you for the PR. I will download and test this change in the next few days. I am fine with the I am not sure why we need the Thank you! |
|
Hi @scriptmonkey, I tried to build the Dockerfile in several ways and below is the information about the builds. The build with changes:
|
|
Hi @scriptmonkey, I would like to hear if there is any update on this pull request? |
|
ok, I am good with these changes, now they just need to be made to all of the Dockerfiles in the repo. I will take care of TomEE 9.1.0 when I do those later this week. |
|
I made updates for all the ubuntu Dockerfiles with this improvement. |
|
@bqcuong I will pull them down and test them this evening. |
Hi,
This pull request includes several small improvements for the Dockerfile, which should help improve the security of container and reduce the risk of potential attacks.
The following changes have been made:
--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.dirmngrwas added because it was needed for thegpgcommand.I hope that you find them useful. Please let me know if you have any concerns.
Thank you.