mirror of
https://github.com/amitshekhariitbhu/go-backend-clean-architecture.git
synced 2026-04-27 05:25:51 +03:00
[PR #4] Minify and secure docker image #16
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/go-backend-clean-architecture#16
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/amitshekhariitbhu/go-backend-clean-architecture/pull/4
Author: @franpog859
Created: 1/12/2023
Status: 🔄 Open
Base:
main← Head:minify-and-secure-docker-image📝 Commits (3)
4fba600Minify and secure Docker image9b57a8fFix the dockerfile07d1c0eAdd the app directory in case it was important📊 Changes
1 file changed (+13 additions, -11 deletions)
View changed files
📝
Dockerfile(+13 -11)📄 Description
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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.