From 1382128e7e63c90c473289cbe0795b5b876daaf1 Mon Sep 17 00:00:00 2001 From: John Dorman <427295+boostchicken@users.noreply.github.com> Date: Thu, 23 Mar 2023 04:31:36 -0700 Subject: [PATCH] Update Dockerfile --- podman-update/build/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/podman-update/build/Dockerfile b/podman-update/build/Dockerfile index 9a3cd50..81d733a 100644 --- a/podman-update/build/Dockerfile +++ b/podman-update/build/Dockerfile @@ -2,16 +2,16 @@ FROM rust as rust RUN mkdir -p /tmp/work WORKDIR /tmp/work - +ARG NETAVARK_VERSION=v1.5.0 RUN apt-get update && apt-get install -y \ protobuf-compiler 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 git checkout ${NETAVARK_VERSION} && rustup target add aarch64-unknown-linux-gnu RUN --mount=type=cache,target=/usr/local/cargo/registry \ - --mount=type=cache,target=/home/root/app/target \ + --mount=type=cache,target=/tmp/work/netavark/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