Skip to content

Conversation

@bqcuong
Copy link
Contributor

@bqcuong bqcuong commented Apr 11, 2023

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:

  • I added --no-install-recommends to remove unnecessary apt 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.
  • ca-certificates was added because it was needed for the curl command.

I hope that you find them useful. Please let me know if you have any concerns.

Thank you.

@bqcuong bqcuong changed the title Reduce attack surface and size for Docker image Chore: reduce attack surface and size for Docker image Apr 11, 2023
@CLAassistant
Copy link

CLAassistant commented Apr 11, 2023

CLA assistant check
All committers have signed the CLA.

@hbagdi hbagdi requested a review from fffonion June 26, 2023 18:31
@kikito kikito merged commit b1ce929 into Kong:master Oct 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants