Skip to content

Conversation

@YoussefBayouli
Copy link

Multi-stage Build: The builder stage compiles the Go binary, and the final stage (alpine) only includes the built binary.
Simplified Commands: Combined related RUN commands to reduce the number of layers.
Minimal Base Image: Used alpine for the runtime image to keep it lightweight.

What this PR does / Why we need it: Simplifies and optimizes the Dockerfile with a multi-stage build, reducing image size and improving efficiency

Which issue(s) this PR fixes:

Closes #

Special notes for your reviewer:

Multi-stage Build: The builder stage compiles the Go binary, and the final stage (alpine) only includes the built binary.
Simplified Commands: Combined related RUN commands to reduce the number of layers.
Minimal Base Image: Used alpine for the runtime image to keep it lightweight.
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.

1 participant