From 3df4bfe04363eff6fb95374a9a938f759933980b Mon Sep 17 00:00:00 2001
From: Olivier Cazade <ocazade@redhat.com>
Date: Wed, 24 May 2023 14:26:25 +0200
Subject: [PATCH] Fix dockerfile targetarch scope with docker (#128)

---
 Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index 9a53a01f..2c38c538 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,11 +1,13 @@
 # We do not use --platform feature to auto fill this ARG because of incompatibility between podman and docker
 ARG TARGETPLATFORM=linux/amd64
 ARG BUILDPLATFORM=linux/amd64
+ARG TARGETARCH=amd64
+
 # Build the manager binary
 FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.19 as builder
 
+ARG TARGETARCH
 ARG TARGETPLATFORM
-ARG TARGETARCH=amd64
 ARG VERSION="unknown"
 
 WORKDIR /opt/app-root
-- 
GitLab