Skip to content

chore: reduce attack surface and size for Docker image#28

Merged
rainviigipuu merged 1 commit intomasterfrom
unknown repository
Apr 12, 2023
Merged

chore: reduce attack surface and size for Docker image#28
rainviigipuu merged 1 commit intomasterfrom
unknown repository

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.

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

Thank you.

@rainviigipuu rainviigipuu merged commit 8a5d9e2 into zendtech:master Apr 12, 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.

2 participants