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

feat: use multistage build to minimize container size #317

Merged
merged 1 commit into from
Sep 29, 2021

Conversation

marcdeop
Copy link
Contributor

This uses the multistage build functionality from Docker to be able to minimize the size of the containers.

From here you can see that the latest tags are well over 100Mb which is ridiculously big for a Go compiled binary.

In an ideal case, we would use FROM scratch but the binary doesn't seem ready for that yet.

@skyscooby
Copy link

I just did this locally and the expanded image went from 400Mb to 20Mb.. can we get this merged.. it kick starts startup time huge!

Copy link
Member

@gedge gedge left a comment

Choose a reason for hiding this comment

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

thanks

@gedge gedge merged commit 0670c22 into mailhog:master Sep 29, 2021
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.

3 participants