From 0427f706cf36d8ea3a6af7caaed106f259e4022d Mon Sep 17 00:00:00 2001 From: Marcus Noble Date: Sat, 17 Oct 2020 21:25:11 +0100 Subject: [PATCH] Removed CGO_ENABLED=0 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index d9dc0b2..a62d828 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,7 +10,7 @@ RUN apk update && apk add --no-cache git && adduser -D -g '' gopher && apk add - ADD go.mod go.sum ./ RUN go mod download ADD . . -RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -o gopherss . +RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -ldflags="-w -s" -o gopherss . FROM --platform=${TARGETPLATFORM:-linux/amd64} scratch WORKDIR /app/