docker-nextcloud-notify-push/Dockerfile
renovate-bot 9a82ffe62c
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
Update rust:1.81.0-bullseye Docker digest to 8328d21
2024-10-17 06:19:12 +00:00

27 lines
753 B
Docker

FROM rust:1.81.0-bullseye@sha256:8328d21407009f8a2d17b0327f32c63411a8c3d5590b71ab87ea993cd2ffd169 as build
# renovate: datasource=github-tags depName=nextcloud/notify_push versioning=semver
ENV NOTIFY_PUSH_VERSION v0.7.0
WORKDIR /notify_push
RUN set -ex; \
apt-get update; \
apt-get install -y --no-install-recommends \
musl-dev \
musl-tools \
; \
git clone --branch $NOTIFY_PUSH_VERSION https://github.com/nextcloud/notify_push.git .; \
rustup target add x86_64-unknown-linux-musl; \
cargo build --release --target=x86_64-unknown-linux-musl;
FROM scratch
COPY --from=build /notify_push/target/x86_64-unknown-linux-musl/release/notify_push /
EXPOSE 7867
USER 33
CMD ["/notify_push", "/config/config.php"]