Update Dockerfile

This commit is contained in:
John Dorman 2023-03-23 06:20:16 -07:00 committed by GitHub
parent c3f1c2d498
commit 57a90974c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -15,12 +15,10 @@ RUN apt-get update && apt-get install -y \
pkg-config \ pkg-config \
protobuf-compiler protobuf-compiler
RUN git clone https://github.com/containers/netavark/ RUN git clone https://github.com/containers/netavark/ && mkdir -p /tmp/work/netavark/.cargo && mkdir -p /tmp/work/netavark/targets && mkdir -p /tmp/work/netavark/bin
WORKDIR /tmp/work/netavark WORKDIR /tmp/work/netavark
RUN mkdir .cargo &&
COPY config.toml ./.cargo/config.toml COPY config.toml ./.cargo/config.toml
RUN mkdir targets && mkdir bin ENV CARGO_TARGET_DIR=targets
ENV CARGO_TARGETS_DIR=targets
RUN git checkout ${NETAVARK_VERSION} && 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 \ RUN --mount=type=cache,target=/usr/local/cargo/registry \