Files
ntfy/Dockerfile-arm
T
binwiederhier bfa0bfa333 Admin socket: single-user lookup, safer socket file handling, Docker socket directory
- GET /v1/users?username= returns one user, so the CLI does not download all users
- Never replace a non-socket file at listen-admin-unix, and say so when the socket belongs to another user's server
- Log when the admin socket is listening; default to /var/run/ntfy on the BSDs too
- Deleting an admin user over HTTP returns 40302 (admin socket only), like the other admin-only operations
- Docker images ship a /run/ntfy directory for the socket
2026-10-31 03:31:01 +00:00

26 lines
1.0 KiB
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
# Admin socket directory, writable by any uid (sticky, like /tmp), so the admin socket also works
# when the container runs as a non-root user (-u UID:GID); the socket itself is created with mode 0660
RUN mkdir -p /run/ntfy && chmod 1777 /run/ntfy
EXPOSE 80/tcp
ENTRYPOINT ["ntfy"]