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
076a179f75
commit
d728e0fde7
@ -6,7 +6,7 @@ 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 cargo build --target aarch64-unknown-linux-gnu --release && cargo build --target aarch64-unknown-linux-gnu --bin netavark-dhcp-proxy-client --release && cp targets/$(profile)/netavark bin/netavark
|
||||
RUN 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
|
||||
|
||||
@ -19,6 +19,13 @@ ARG CONMON_VERSION=v2.1.7
|
||||
ARG CRUN_VERSION=1.8.2
|
||||
ARG DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
|
||||
RUN mkdir -p /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/bin \
|
||||
&& mkdir -p /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/libexec/podman/ \
|
||||
&& mkdir -p /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/share/containers/ \
|
||||
&& mkdir -p /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/etc/containers/
|
||||
|
||||
COPY --from=rust /tmp/work/netavark/bin/* /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/libexec/podman
|
||||
# Install dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
bc \
|
||||
@ -46,13 +53,9 @@ RUN apt-get update && apt-get install -y \
|
||||
|
||||
ENV GOOS=linux
|
||||
|
||||
RUN mkdir -p /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/bin \
|
||||
&& mkdir -p /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/libexec/podman/ \
|
||||
&& mkdir -p /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/share/containers/ \
|
||||
&& mkdir -p /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/etc/containers/
|
||||
|
||||
RUN wget https://github.com/containers/crun/releases/download/${CRUN_VERSION}/crun-${CRUN_VERSION}-linux-arm64 -o /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/bin/crun
|
||||
COPY --from=rust /tmp/work/targets/release/netavark/bin/* /tmp/install/podman-${PODMAN_VERSION}-${UDM_PLATFORM}/usr/libexec/podman
|
||||
|
||||
|
||||
COPY ./podman.Makefile.${UDM_PLATFORM}.patch /tmp
|
||||
RUN mkdir -p /build \
|
||||
|
Loading…
Reference in New Issue
Block a user