Skip to content
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

Minify and secure docker image #4

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

franpog859
Copy link

Heyho! I think you may consider updating the Dockerfile to make the image smaller and more secure

This change should minify it by separating the builder image with all of the Go tools needed to build the executable and the second image that consists of only the executable itself. It also uses a minimal base image so there are close to no tools that could be exploited, and the user is set to nonroot

@amitshekhariitbhu
Copy link
Owner

Thanks for this PR, I shall review, test everything and then proceed.

Copy link

@Eleazar-Harold Eleazar-Harold left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@franpog859
Copy link
Author

Is this review enough? I don't have write access. May I ask you to merge it, @amitshekhariitbhu ?

Yuri-SN added a commit to Yuri-SN/go-backend-clean-architecture that referenced this pull request Aug 27, 2023
@tanishq14developer
Copy link

@amitshekhariitbhu Please merge this PR

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.

4 participants