Files
ntfy/Dockerfile-arm
T
echo 1afeeee50a Set org.opencontainers.image.version label on release images
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.
2026-09-06 18:00:27 +08:00

22 lines
789 B
Plaintext

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"
# Alpine does not support adding "tzdata" on ARM anymore, see
# https://github.com/binwiederhier/ntfy/issues/894
COPY ntfy /usr/bin
EXPOSE 80/tcp
ENTRYPOINT ["ntfy"]