Skip to content

Instantly share code, notes, and snippets.

@Chion82
Forked from PurpleBooth/Dockerfile
Last active October 14, 2020 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Chion82/b2e109ad3193bb2ea14357b64cda708b to your computer and use it in GitHub Desktop.
Save Chion82/b2e109ad3193bb2ea14357b64cda708b to your computer and use it in GitHub Desktop.
Create a static binary in go
go build -ldflags "-linkmode external -extldflags -static"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment