From c56b46a878238b1eb637c4c772b1b86f870f96f3 Mon Sep 17 00:00:00 2001 From: George Angel Date: Tue, 13 Feb 2018 12:09:49 +0000 Subject: [PATCH] Disable cgo and statically link the build Enables running on Alpine Linux and other musl based distributions --- .goreleaser.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.goreleaser.yml b/.goreleaser.yml index 957d7e8..6777135 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,9 @@ # Build customization builds: + - ldflags: -s -extldflags "-static" + env: + - CGO_ENABLED=0 + - binary: strongbox goos: - windows