From 5f34df79341ba7f3aa734926f7347078a02b2907 Mon Sep 17 00:00:00 2001 From: Nicky Semenza Date: Wed, 26 Apr 2023 10:35:05 -0700 Subject: [PATCH] fix architecture for docker builds it seems that specifing the platform arg is not needed / incorrect for github actions: https://github.com/docker/build-push-action/issues/668#issuecomment-1213063705 resolves #1287 --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 21266f76e..4b9e30a4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,8 @@ -FROM --platform=${BUILDPLATFORM} golang:1.20 +FROM golang:1.20 + +ARG TARGETPLATFORM +ARG BUILDPLATFORM +RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM" LABEL org.opencontainers.image.source https://github.com/cloudflare/cfssl LABEL org.opencontainers.image.description "Cloudflare's PKI toolkit"