0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-05-22 23:30:54 +02:00

Add notify_push

Signed-off-by: J0WI <J0WI@users.noreply.github.com>
This commit is contained in:
J0WI 2021-04-05 17:07:39 +02:00
parent 37ee8cfdab
commit 55aa61ac98
3 changed files with 58 additions and 0 deletions

27
notify_push/Dockerfile Normal file
View file

@ -0,0 +1,27 @@
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"]