mirror of
https://github.com/multipleof4/ntfy.git
synced 2026-10-12 14:55:22 +00:00
Dockers v2
This commit is contained in:
+11
-3
@@ -1,6 +1,9 @@
|
||||
FROM --platform=$BUILDPLATFORM alpine AS tzdata
|
||||
RUN apk add --no-cache tzdata
|
||||
|
||||
FROM alpine
|
||||
|
||||
LABEL org.opencontainers.image.authors="philipp.heckel@gmail.com"
|
||||
LABEL org.opencontainers.image.authors="Philipp C. Heckel <phil@mail.ntfy.sh>"
|
||||
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"
|
||||
@@ -9,8 +12,13 @@ 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"
|
||||
|
||||
RUN apk add --no-cache tzdata
|
||||
COPY ntfy /usr/bin
|
||||
ARG TARGETPLATFORM
|
||||
|
||||
# Install tzdata in a separate stage using the build platform to avoid
|
||||
# needing QEMU to run "apk add" for non-native target architectures
|
||||
COPY --from=tzdata /usr/share/zoneinfo /usr/share/zoneinfo
|
||||
|
||||
COPY $TARGETPLATFORM/ntfy /usr/bin/ntfy
|
||||
|
||||
EXPOSE 80/tcp
|
||||
ENTRYPOINT ["ntfy"]
|
||||
|
||||
Reference in New Issue
Block a user