Skip to content

Instantly share code, notes, and snippets.

@wrouesnel
Created February 21, 2016 23:49
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 wrouesnel/15d9359fc88b0937b6bf to your computer and use it in GitHub Desktop.
Save wrouesnel/15d9359fc88b0937b6bf to your computer and use it in GitHub Desktop.
Build command for totally static go images
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-s' -o main .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment