This commit is contained in:
Kwitsch 2022-09-16 11:03:27 +02:00
parent 5580a51016
commit 4671027cac
1 changed files with 2 additions and 2 deletions

View File

@ -29,9 +29,9 @@ RUN --mount=target=. \
CGO_ENABLED=0 \
GOOS=$TARGETOS \
GOARCH=$TARGETARCH \
GOARM=$TARGETVARIANT \
GOARM=${TARGETVARIANT##*v} \
go build \
-tags static \
-tags static,osusergo,netgo \
-v \
-ldflags="-linkmode external -extldflags -static -X github.com/0xERR0R/blocky/util.Version=${VERSION} -X github.com/0xERR0R/blocky/util.BuildTime=${BUILD_TIME}" \
-o /bin/blocky