From d8d7054406b41efcca0d6260ae16030090697b7a Mon Sep 17 00:00:00 2001 From: Keith Gaughan Date: Sun, 25 Aug 2024 17:40:35 +0100 Subject: [PATCH] Switch to distroless/static as the base for an image 2/5 the size (#13) --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6285257..84a639b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM alpine:latest +FROM gcr.io/distroless/static:latest LABEL org.opencontainers.image.title=NXTP LABEL org.opencontainers.image.description="An NXTP client and server" @@ -8,7 +8,6 @@ LABEL org.opencontainers.image.url=https://github.com/kgaughan/nxtp LABEL org.opencontainers.image.source=https://github.com/kgaughan/nxtp LABEL org.opencontainers.image.documentation=https://kgaughan.github.io/nxtp/ -RUN apk --no-cache add tzdata COPY nxtp . USER nobody EXPOSE 12300