diff options
| author | Paul Duncan <pabs@pablotron.org> | 2025-03-07 20:12:48 -0500 |
|---|---|---|
| committer | Paul Duncan <pabs@pablotron.org> | 2025-03-07 20:12:48 -0500 |
| commit | 7b0e2612405b1eaa2eb0a36c404b4d9e751c609a (patch) | |
| tree | dcca949925648732ece25f3ce2965764b5c268e7 | |
| parent | 75539a6e72a58a3ec2600a1aa902790660e09791 (diff) | |
| download | jim-bot-7b0e2612405b1eaa2eb0a36c404b4d9e751c609a.tar.xz jim-bot-7b0e2612405b1eaa2eb0a36c404b4d9e751c609a.zip | |
Dockerfile: switch run base from distroless/static to scratch
| -rw-r--r-- | Dockerfile | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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"] |
