From f22cc825a57c3bccd1c4423a08a39ba585cfce71 Mon Sep 17 00:00:00 2001 From: Victor Castell <0x@vcastellm.xyz> Date: Tue, 3 Sep 2024 15:37:51 +0000 Subject: [PATCH] fix: build Go bin for the correct platform --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 43c42768..f2970447 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # CONTAINER FOR BUILDING BINARY -FROM golang:1.22.4 AS build +FROM --platform=${BUILDPLATFORM} golang:1.22.4 AS build WORKDIR $GOPATH/src/github.com/0xPolygon/cdk