[PR #4] Minify and secure docker image #16

Open
opened 2026-03-01 14:36:51 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/amitshekhariitbhu/go-backend-clean-architecture/pull/4
Author: @franpog859
Created: 1/12/2023
Status: 🔄 Open

Base: mainHead: minify-and-secure-docker-image


📝 Commits (3)

  • 4fba600 Minify and secure Docker image
  • 9b57a8f Fix the dockerfile
  • 07d1c0e Add 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.

## 📋 Pull Request Information **Original PR:** https://github.com/amitshekhariitbhu/go-backend-clean-architecture/pull/4 **Author:** [@franpog859](https://github.com/franpog859) **Created:** 1/12/2023 **Status:** 🔄 Open **Base:** `main` ← **Head:** `minify-and-secure-docker-image` --- ### 📝 Commits (3) - [`4fba600`](https://github.com/amitshekhariitbhu/go-backend-clean-architecture/commit/4fba600c661adc4e0da00ec370831cf80562451f) Minify and secure Docker image - [`9b57a8f`](https://github.com/amitshekhariitbhu/go-backend-clean-architecture/commit/9b57a8f82cdf7a075de2ea4c4bf2493fea610738) Fix the dockerfile - [`07d1c0e`](https://github.com/amitshekhariitbhu/go-backend-clean-architecture/commit/07d1c0efb1d2276746b9b78dcc5629a797aafae8) Add the app directory in case it was important ### 📊 Changes **1 file changed** (+13 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `Dockerfile` (+13 -11) </details> ### 📄 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 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-backend-clean-architecture#16
No description provided.