mirror of
https://github.com/k8snetworkplumbingwg/multus-cni.git
synced 2025-08-30 05:53:06 +00:00
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 <trevor.tao@arm.com>
This commit is contained in:
parent
079c853eba
commit
cd1a76f919
20
Dockerfile.arm64
Normal file
20
Dockerfile.arm64
Normal file
@ -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"]
|
Loading…
Reference in New Issue
Block a user