Skip to content

Commit

Permalink
Switch to distroless/static as the base for an image 2/5 the size
Browse files Browse the repository at this point in the history
  • Loading branch information
kgaughan committed Aug 25, 2024
1 parent 9c4ff14 commit ee90124
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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"
Expand All @@ -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
Expand Down

0 comments on commit ee90124

Please sign in to comment.