mirror of
https://github.com/wofferl/proxmox-backup-arm64
synced 2025-12-06 00:13:41 +00:00
20 lines
595 B
Docker
20 lines
595 B
Docker
FROM debian:bullseye-slim as builder-stage
|
|
# workaround for memory bug https://github.com/rust-lang/cargo/issues/10583
|
|
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
|
|
|
RUN apt update && apt-get install -y --no-install-recommends \
|
|
build-essential curl ca-certificates sudo git lintian \
|
|
pkg-config libudev-dev libssl-dev libapt-pkg-dev libclang-dev \
|
|
libpam0g-dev
|
|
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -sSf | sh -s -- -y
|
|
|
|
COPY . /build/
|
|
WORKDIR /build
|
|
|
|
SHELL ["/bin/bash", "-c"]
|
|
RUN source ~/.cargo/env && ./build.sh
|
|
|
|
FROM scratch
|
|
COPY --from=builder-stage /build/packages/* /
|