dockerfile: Fix unintended removal of CGO_ENABLED=0

This commit is contained in:
Yusuke Kuoka 2022-03-05 05:38:35 +00:00
parent 138e326705
commit b7c5611516
1 changed files with 3 additions and 0 deletions

View File

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