diff --git a/Dockerfile b/Dockerfile index 9a53a01f606830c793310d71feb6b6de4cb6dfa8..2c38c538894f7b2d5085bc00ee0c905b4f66cdc4 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