Skip to content

Commit 3df4bfe

Browse files
Fix dockerfile targetarch scope with docker (#128)
1 parent 5017b42 commit 3df4bfe

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
# We do not use --platform feature to auto fill this ARG because of incompatibility between podman and docker
22
ARG TARGETPLATFORM=linux/amd64
33
ARG BUILDPLATFORM=linux/amd64
4+
ARG TARGETARCH=amd64
5+
46
# Build the manager binary
57
FROM --platform=$BUILDPLATFORM docker.io/library/golang:1.19 as builder
68

9+
ARG TARGETARCH
710
ARG TARGETPLATFORM
8-
ARG TARGETARCH=amd64
911
ARG VERSION="unknown"
1012

1113
WORKDIR /opt/app-root

0 commit comments

Comments
 (0)