renovate-bot
584e393dd5
Some checks reported errors
continuous-integration/drone/pr Build was killed
27 lines
753 B
Docker
27 lines
753 B
Docker
FROM rust:1.82.0-bullseye@sha256:2923d35246370c09666a07c0437ee6993cc6f88863407f488d32c4826b9e07c8 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"]
|