From aceb986bd7938362bf439cb1e968bd906644c06e Mon Sep 17 00:00:00 2001 From: Mathieu Benoit Date: Wed, 6 Nov 2024 10:29:40 -0500 Subject: [PATCH] gcr.io/distroless/static instead of scratch Signed-off-by: Mathieu Benoit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b99b0e4..5d05041 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,8 +14,8 @@ RUN go mod download COPY . . RUN CGO_ENABLED=0 GOOS=linux go build -o /usr/local/bin/score-k8s ./cmd/score-k8s -# We can use scratch since we don't rely on any linux libs or state. -FROM scratch +# We can use gcr.io/distroless/static since we don't rely on any linux libs or state, but we need ca-certificates to connect to https/oci with the init command. +FROM gcr.io/distroless/static # Set the current working directory inside the container. WORKDIR /score-k8s