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
e5f79651dd
commit
87a3387275
@ -6,23 +6,22 @@ ARG NETAVARK_VERSION=v1.5.0
|
|||||||
RUN apt-get update && apt-get install -y \
|
RUN apt-get update && apt-get install -y \
|
||||||
bc \
|
bc \
|
||||||
binutils-aarch64-linux-gnu \
|
binutils-aarch64-linux-gnu \
|
||||||
bison \
|
|
||||||
build-essential \
|
build-essential \
|
||||||
flex \
|
flex \
|
||||||
gcc-aarch64-linux-gnu \
|
gcc-aarch64-linux-gnu \
|
||||||
git \
|
|
||||||
libc6-arm64-cross \
|
libc6-arm64-cross \
|
||||||
libc6-dev-arm64-cross \
|
libc6-dev-arm64-cross \
|
||||||
libncurses5-dev \
|
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
systemd \
|
|
||||||
protobuf-compiler
|
protobuf-compiler
|
||||||
|
|
||||||
RUN git clone https://github.com/containers/netavark/
|
RUN git clone https://github.com/containers/netavark/
|
||||||
WORKDIR /tmp/work/netavark
|
WORKDIR /tmp/work/netavark
|
||||||
|
RUN mkdir .cargo
|
||||||
|
COPY config.toml ./.cargo/config.toml
|
||||||
ENV CARGO_TARGETS_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 \
|
||||||
--mount=type=cache,target=/tmp/work/netavark/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/
|
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/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user