Removed CGO_ENABLED=0
This commit is contained in:
parent
caf32c1c3a
commit
0427f706cf
@ -10,7 +10,7 @@ RUN apk update && apk add --no-cache git && adduser -D -g '' gopher && apk add -
|
|||||||
ADD go.mod go.sum ./
|
ADD go.mod go.sum ./
|
||||||
RUN go mod download
|
RUN go mod download
|
||||||
ADD . .
|
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
|
FROM --platform=${TARGETPLATFORM:-linux/amd64} scratch
|
||||||
WORKDIR /app/
|
WORKDIR /app/
|
||||||
|
Loading…
Reference in New Issue
Block a user