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

Build docker images with GoReleaser #112

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

Conversation

zerodivisi0n
Copy link
Contributor

As promissed in my previous PR #111, I rewrote Docker builds with GoReleaser. Current images are available on my Docker Hub now. I added builds only for two archs - amd64 and arm64. I think it will be enough.

@@ -11,6 +11,8 @@ builds:
- amd64
- 386
- arm64
env:
- CGO_ENABLED=0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I had to add this because binaries are now being built on host OS with Go cross-complier and then copy to the Docker image. Therefore, the applications that have been built on e.g. Ubuntu don't run inside Alpine image.
CGO_ENABLED=0 enables static linking for binaries and makes them more portable.

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