mirror of
https://github.com/unifi-utilities/unifios-utilities.git
synced 2024-08-30 18:32:21 +00:00
Update Dockerfile
This commit is contained in:
parent
c3f1c2d498
commit
57a90974c5
@ -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 \
|
||||||
|
Loading…
Reference in New Issue
Block a user