Removed CGO_ENABLED=0

This commit is contained in:
Marcus Noble 2020-10-17 21:25:11 +01:00
parent caf32c1c3a
commit 0427f706cf
1 changed files with 1 additions and 1 deletions

View File

@ -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/