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

Simplifying and Optimizing the Dockerfile #1769

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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