From 4567b990a7cd213481c245ce9531d490b68b4924 Mon Sep 17 00:00:00 2001 From: Appu Date: Fri, 15 Sep 2023 10:53:12 -0400 Subject: [PATCH] disable cgo and use static base image --- .ko.yaml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/.ko.yaml b/.ko.yaml index 5511c8fba..26ce2f1d7 100644 --- a/.ko.yaml +++ b/.ko.yaml @@ -1,12 +1,11 @@ -defaultBaseImage: gcr.io/distroless/base-debian12 +defaultBaseImage: gcr.io/distroless/static-debian12 builds: - main: . env: - - CGO_ENABLED=1 -# If you are deploying from M1, you can use this (uncomment below, and -# comment out above), though it does remove the support for the "createca" command. -# But at least you can deploy it from M1 using this. -# - CGO_ENABLED=0 + - CGO_ENABLED=0 +# If you need support for the the "createca" command, you must enable +# CGO and use a base image with gblic (base instead of static) +# - CGO_ENABLED=1 flags: - -trimpath - -tags