forked from ayufan/pve-backup-server-dockerfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.client
39 lines (32 loc) · 1.12 KB
/
Dockerfile.client
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ARG DOCKER_ARCH
FROM ${DOCKER_ARCH}/debian:bookworm AS builder
RUN apt-get -y update && \
apt-get -y install \
build-essential git-core \
lintian pkg-config quilt patch cargo \
nodejs node-colors node-commander \
libudev-dev libapt-pkg-dev \
libacl1-dev libpam0g-dev libfuse3-dev \
libsystemd-dev uuid-dev libssl-dev \
libclang-dev libjson-perl libcurl4-openssl-dev \
dh-exec wget
WORKDIR /src
RUN /usr/bin/rustc --version
RUN git config --global user.email "docker@compile.dev" && \
git config --global user.name "Docker Compile"
# Clone all sources
ARG VERSION=master
ADD /versions/${VERSION}/ /patches/
RUN /patches/clone.bash
# Apply all patches
ADD /scripts/ /scripts/
ARG DOCKER_ARCH
RUN /scripts/apply-patches.bash /patches/server/*.patch /patches/client/*.patch /patches/client-${DOCKER_ARCH}/*.patch
RUN /scripts/strip-cargo.bash
RUN /scripts/experimental-cargo.bash
# Build
RUN \
cargo build --manifest-path proxmox-backup/proxmox-backup-client/Cargo.toml --release && \
cargo build --manifest-path proxmox-backup/pxar-bin/Cargo.toml --release
# Bundle client
RUN /scripts/bundle-client.bash