From ef8f01b299c9cac72ad0f7dd161af78d9c96f6bf Mon Sep 17 00:00:00 2001 From: Thomas Ferrandiz Date: Mon, 31 Mar 2025 14:54:53 +0000 Subject: [PATCH] Use cross-compilation for thick plugin build --- images/Dockerfile.thick | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/Dockerfile.thick b/images/Dockerfile.thick index 86ba7f807..01ecf6faa 100644 --- a/images/Dockerfile.thick +++ b/images/Dockerfile.thick @@ -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