From 15310ee2ff9e119ac67e486492bb82edd99b10cc Mon Sep 17 00:00:00 2001 From: Adora Laura Kalb Date: Tue, 23 Apr 2024 07:52:15 +0200 Subject: [PATCH] switch docker image to distroless --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5119675..de8eb76 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,10 +20,9 @@ RUN go build -o ntppool-exporter main.go RUN chmod +x ntppool-exporter -FROM debian:12 AS prod +FROM gcr.io/distroless/static-debian12 AS prod WORKDIR /app -COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ COPY --from=build /var/app/ntppool-exporter /bin/ LABEL maintainer="Adora Laura Kalb "