0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2024-11-17 18:46:43 +01:00
nextcloud-docker/notify_push/Dockerfile
J0WI 55aa61ac98 Add notify_push
Signed-off-by: J0WI <J0WI@users.noreply.github.com>
2023-11-10 19:18:59 +01:00

27 lines
700 B
Docker

FROM alpine:3.13
RUN apk add --no-cache ca-certificates
# https://github.com/nextcloud/notify_push/releases
ENV NOTIFY_PUSH_VERSION 0.1.6
RUN set -ex; \
\
apkArch="$(apk --print-arch)"; \
npTriplet="unknown-linux-musl"; \
case "$apkArch" in \
aarch64|x86_64) npArch="$apkArch" ;; \
armv7) npArch="$apkArch"; $npTriplet="${npTriplet}-eabihf" ;; \
*) echo >&2 "error: unsupported arch: $apkArch"; exit 1 ;; \
esac; \
\
wget -O /usr/local/bin/notify_push "https://github.com/nextcloud/notify_push/releases/download/v${NOTIFY_PUSH_VERSION}/notify_push-$npArch-$npTriplet"; \
\
chmod +x /usr/local/bin/notify_push; \
notify_push --version
USER nobody
EXPOSE 7867
CMD ["notify_push"]