Update Dockerfile

This commit is contained in:
John Dorman 2023-03-23 06:48:19 -07:00 committed by GitHub
parent 156a827464
commit df425d7d34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,12 +22,7 @@ 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 RUN make build
RUN ls /tmp/work/netavark/
RUN ls /tmp/work/netavark/targets
RUN ls /tmp/work/netavark/targets/
RUN cp /tmp/work/netavark/targets/aarch64-unknown-linux-gnu/release/netavark /tmp/work/netavark/bin/ && cp /tmp/work/netavark/targets/aarch64-unknown-linux-gnu/release/netavark-dhcp-client-proxy /tmp/work/netavark/bin/ RUN cp /tmp/work/netavark/targets/aarch64-unknown-linux-gnu/release/netavark /tmp/work/netavark/bin/ && cp /tmp/work/netavark/targets/aarch64-unknown-linux-gnu/release/netavark-dhcp-client-proxy /tmp/work/netavark/bin/
FROM golang:1.18.3-stretch FROM golang:1.18.3-stretch