mirror of
https://github.com/davegallant/rfd-notify.git
synced 2025-08-05 08:13:39 +00:00
Bumps rust from 1.67.0-buster to 1.67.1-buster. --- updated-dependencies: - dependency-name: rust dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
35 lines
767 B
Docker
35 lines
767 B
Docker
FROM rust:1.67.1-buster as build
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt update && \
|
|
apt -y install \
|
|
ca-certificates \
|
|
libssl-dev \
|
|
musl-tools \
|
|
musl-dev
|
|
|
|
RUN rustup target add x86_64-unknown-linux-musl
|
|
|
|
RUN update-ca-certificates
|
|
|
|
WORKDIR /usr/src/rfd-notify
|
|
|
|
COPY Cargo.toml Cargo.toml
|
|
COPY src src
|
|
|
|
ENV PKG_CONFIG_ALLOW_CROSS=1
|
|
|
|
RUN cargo build --target=x86_64-unknown-linux-musl --release
|
|
|
|
### Final lightweight image
|
|
FROM scratch
|
|
|
|
COPY --from=build /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
|
|
COPY --from=build /usr/src/rfd-notify/target/x86_64-unknown-linux-musl/release/rfd-notify ./rfd-notify
|
|
|
|
ENV SSL_CERT_FILE=/etc/ssl/certs/ca-certificates.crt
|
|
ENV SSL_CERT_DIR=/etc/ssl/certs
|
|
|
|
ENTRYPOINT ["/rfd-notify"]
|