Skip to content

Commit

Permalink
Merge pull request #78 from jschintag/cross-build-podman
Browse files Browse the repository at this point in the history
Dockerfile: Fix wrong base image arch when cross-building with podman
  • Loading branch information
kubevirt-bot authored Dec 8, 2024
2 parents 65a18c8 + 075f130 commit 48b7ba5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ ARG TARGETARCH
# Build
RUN CGO_ENABLED=0 GOOS=linux GOARCH="${TARGETARCH}" go build -a -o manager main.go

FROM registry.access.redhat.com/ubi8/ubi-minimal
FROM --platform=linux/$TARGETARCH registry.access.redhat.com/ubi8/ubi-minimal
WORKDIR /
COPY --from=builder /workspace/manager .

Expand Down

0 comments on commit 48b7ba5

Please sign in to comment.