Skip to content

Commit

Permalink
Add image metadata, allow flags to be overridden, and tzdata
Browse files Browse the repository at this point in the history
That last one was a major omission and would cause the daemon to hang
when run in a container.
  • Loading branch information
kgaughan committed Aug 25, 2024
1 parent c917236 commit f94d97a
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
FROM alpine:latest

LABEL org.opencontainers.image.title=NXTP
LABEL org.opencontainers.image.description="An NXTP client and server"
LABEL org.opencontainers.image.vendor="Keith Gaughan"
LABEL org.opencontainers.image.licenses=MIT
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
ENTRYPOINT ["/nxtp", "-endpoint", ":12300"]
ENTRYPOINT ["/nxtp"]
CMD ["-endpoint", "0.0.0.0:12300"]

0 comments on commit f94d97a

Please sign in to comment.