Skip to content

Commit

Permalink
Fix dockerfile targetarch scope with docker
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierCazade committed May 24, 2023
1 parent 80337e1 commit a75b2ea
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit a75b2ea

Please sign in to comment.