aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2025-03-07 20:12:48 -0500
committerPaul Duncan <pabs@pablotron.org>2025-03-07 20:12:48 -0500
commit7b0e2612405b1eaa2eb0a36c404b4d9e751c609a (patch)
treedcca949925648732ece25f3ce2965764b5c268e7
parent75539a6e72a58a3ec2600a1aa902790660e09791 (diff)
downloadjim-bot-7b0e2612405b1eaa2eb0a36c404b4d9e751c609a.tar.xz
jim-bot-7b0e2612405b1eaa2eb0a36c404b4d9e751c609a.zip
Dockerfile: switch run base from distroless/static to scratch
-rw-r--r--Dockerfile6
1 files changed, 1 insertions, 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"]