Use cross-compilation for thick plugin build

This commit is contained in:
Thomas Ferrandiz 2025-03-31 14:54:53 +00:00
parent 51752f1a6e
commit ef8f01b299

View File

@ -1,9 +1,10 @@
# This Dockerfile is used to build the image available on DockerHub
FROM golang:1.23 AS build
FROM --platform=$BUILDPLATFORM golang:1.23 as build
# Add everything
ADD . /usr/src/multus-cni
ARG TARGETPLATFORM
RUN cd /usr/src/multus-cni && \
./hack/build-go.sh