From cd1a76f91943ec5104ba4b9b725f64ed85bbb48d Mon Sep 17 00:00:00 2001 From: Trevor Tao Date: Wed, 4 Dec 2019 22:13:40 +0800 Subject: [PATCH] Add Dockerfile for building image on arm64 Add Dockerfile.arm64 for building Multus image on arm64. Actually it's multi-arch capable and works for amd64 platform too if used. Signed-off-by: Trevor Tao --- Dockerfile.arm64 | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Dockerfile.arm64 diff --git a/Dockerfile.arm64 b/Dockerfile.arm64 new file mode 100644 index 000000000..3ebca04a6 --- /dev/null +++ b/Dockerfile.arm64 @@ -0,0 +1,20 @@ +# This Dockerfile is used to build the image available on DockerHub +FROM golang:1.13.4 as build + +# Add everything +ADD . /usr/src/multus-cni + +#ENV GOARCH "arm64" +#ENV GOOS "linux" + +RUN cd /usr/src/multus-cni && \ + ./build + +# build arm64 container +FROM centos:7 +COPY --from=build /usr/src/multus-cni /usr/src/multus-cni + +WORKDIR / +ADD ./images/entrypoint.sh / + +ENTRYPOINT ["/entrypoint.sh"]