Created
April 25, 2018 14:38
-
-
Save adamluzsi/961f7248ae1dda6bd5dcbc3f75336158 to your computer and use it in GitHub Desktop.
Totally static Go builds
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGO_ENABLED=0 go build -a -ldflags '-extldflags "-static"' . |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment