From b7c561151624c0d261cebef8c0ef6fd3e77dfef2 Mon Sep 17 00:00:00 2001 From: Yusuke Kuoka Date: Sat, 5 Mar 2022 05:38:35 +0000 Subject: [PATCH] dockerfile: Fix unintended removal of CGO_ENABLED=0 --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index ff4ac7f2..895ca938 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 ./