Skip to content

Minify and secure docker image#4

Open
franpog859 wants to merge 3 commits into
amitshekhariitbhu:mainfrom
franpog859:minify-and-secure-docker-image
Open

Minify and secure docker image#4
franpog859 wants to merge 3 commits into
amitshekhariitbhu:mainfrom
franpog859:minify-and-secure-docker-image

Conversation

@franpog859

Copy link
Copy Markdown

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
Copy Markdown
Owner

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

@Eleazar-Harold Eleazar-Harold left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@franpog859

Copy link
Copy Markdown
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
Copy Markdown

@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