Update Dockerfile

This commit is contained in:
John Dorman 2023-03-23 07:07:09 -07:00 committed by GitHub
parent 6fba4da32b
commit 536863f586
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,7 +18,6 @@ RUN apt-get update && apt-get install -y \
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 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
COPY config.toml ./.cargo/config.toml COPY config.toml ./.cargo/config.toml
ENV CARGO_TARGET_DIR=targets
COPY ./net.Makefile.patch /tmp COPY ./net.Makefile.patch /tmp
RUN git checkout ${NETAVARK_VERSION} && rustup target add aarch64-unknown-linux-gnu && patch Makefile /tmp/net.Makefile.patch RUN git checkout ${NETAVARK_VERSION} && rustup target add aarch64-unknown-linux-gnu && patch Makefile /tmp/net.Makefile.patch
RUN make build RUN make build