dockerfile: Fix unintended removal of CGO_ENABLED=0
This commit is contained in:
parent
138e326705
commit
b7c5611516
|
|
@ -3,6 +3,9 @@ FROM --platform=$BUILDPLATFORM golang:1.17 as builder
|
|||
|
||||
WORKDIR /workspace
|
||||
|
||||
# Make it runnable on a distroless image/without libc
|
||||
ENV CGO_ENABLED=0
|
||||
|
||||
# Copy the Go Modules manifests
|
||||
COPY go.mod go.sum ./
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue