From 141d8387e9cc25eca23eeb9c496a40746cffbe10 Mon Sep 17 00:00:00 2001 From: John Dorman <427295+boostchicken@users.noreply.github.com> Date: Thu, 23 Mar 2023 04:14:41 -0700 Subject: [PATCH] Update Dockerfile --- podman-update/build/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/podman-update/build/Dockerfile b/podman-update/build/Dockerfile index fe70079..3af1c3a 100644 --- a/podman-update/build/Dockerfile +++ b/podman-update/build/Dockerfile @@ -10,7 +10,9 @@ RUN git clone https://github.com/containers/netavark/ WORKDIR /tmp/work/netavark ENV CARGO_TARGETS_DIR = targets RUN rustup target add aarch64-unknown-linux-gnu -RUN cargo build --target aarch64-unknown-linux-gnu --release && cargo build --target aarch64-unknown-linux-gnu --bin netavark-dhcp-proxy-client --release && cp targets/$(profile)/* /tmp/work/netavark/bin/ +RUN --mount=type=cache,target=/usr/local/cargo/registry \ + --mount=type=cache,target=/home/root/app/target \ + cargo build --target aarch64-unknown-linux-gnu --release && cargo build --target aarch64-unknown-linux-gnu --bin netavark-dhcp-proxy-client --release && cp targets/$(profile)/* /tmp/work/netavark/bin/ FROM golang:1.18.3-stretch