From da5ecd53e48f32783cec3ff46abd14edb14b6083 Mon Sep 17 00:00:00 2001 From: Jesus Uriel Guzman-Mendoza Date: Wed, 6 Nov 2024 22:41:22 +0000 Subject: [PATCH] Add platform flag to Golang binary to honor build platform --- cmd/csi_driver/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/csi_driver/Dockerfile b/cmd/csi_driver/Dockerfile index f96707018..062fd870c 100644 --- a/cmd/csi_driver/Dockerfile +++ b/cmd/csi_driver/Dockerfile @@ -14,7 +14,7 @@ # limitations under the License. # Build driver go binary -FROM golang:1.22.7 AS driver-builder +FROM --platform=$BUILDPLATFORM golang:1.22.7 AS driver-builder ARG STAGINGVERSION