From 7b0e2612405b1eaa2eb0a36c404b4d9e751c609a Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Fri, 7 Mar 2025 20:12:48 -0500 Subject: Dockerfile: switch run base from distroless/static to scratch --- Dockerfile | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a9abbab..2e43b7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,10 +7,6 @@ WORKDIR /src RUN --mount=type=cache,target=/go ["go", "build", "-trimpath", "-ldflags=-s -w"] # run stage -# -# this stage used to use "FROM scratch", but we need ca-certificates in -# order to connect to the NWS API. -FROM gcr.io/distroless/static -ENV TZ "America/New_York" +FROM scratch COPY --from=build /src/jim-bot /jim-bot CMD ["/jim-bot"] -- cgit v1.2.3