mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-11-10 14:44:04 +08:00
The published Docker images are missing the org.opencontainers.image.version label, so image updaters cannot tell which ntfy version they are running (#1921). PR #1307 added the LABEL to Dockerfile-build, but that file is not referenced by the goreleaser docker builds: the release pipeline builds amd64 images from Dockerfile and the arm images from Dockerfile-arm, neither of which had the label, and no build arg was passed to either. Add an ARG VERSION=dev and the LABEL to both release Dockerfiles, and pass --build-arg=VERSION={{ .Version }} in the goreleaser build flags so the real version from the release tag lands in the image config.
20 lines
705 B
Docker
20 lines
705 B
Docker
FROM alpine
|
|
|
|
ARG VERSION=dev
|
|
|
|
LABEL org.opencontainers.image.authors="philipp.heckel@gmail.com"
|
|
LABEL org.opencontainers.image.url="https://ntfy.sh/"
|
|
LABEL org.opencontainers.image.documentation="https://docs.ntfy.sh/"
|
|
LABEL org.opencontainers.image.source="https://github.com/binwiederhier/ntfy"
|
|
LABEL org.opencontainers.image.vendor="Philipp C. Heckel"
|
|
LABEL org.opencontainers.image.licenses="Apache-2.0, GPL-2.0"
|
|
LABEL org.opencontainers.image.title="ntfy"
|
|
LABEL org.opencontainers.image.description="Send push notifications to your phone or desktop using PUT/POST"
|
|
LABEL org.opencontainers.image.version="$VERSION"
|
|
|
|
RUN apk add --no-cache tzdata
|
|
COPY ntfy /usr/bin
|
|
|
|
EXPOSE 80/tcp
|
|
ENTRYPOINT ["ntfy"]
|