[Improvement] go build now explicitly enables cgo and goos=linux

This commit is contained in:
AquoDev 2020-09-22 12:41:31 +02:00
parent 68253c63f9
commit 03da4a7223
No known key found for this signature in database
GPG Key ID: 27C4524C2511DF26

View File

@ -16,7 +16,7 @@ WORKDIR /kube-nftlb
COPY . .
# Compile kube-nftlb-client using local dependencies
RUN go build -mod=vendor ./cmd/kube-nftlb-client
RUN GOOS=linux CGO_ENABLED=1 go build -tags 'osusergo netgo' -mod=vendor ./cmd/kube-nftlb-client
###############################################