Skip to content

Commit

Permalink
fix: ensure image can be built on m1 macos
Browse files Browse the repository at this point in the history
When running any of the image build  make targets on an m1 macos, it fails due to
the following error: qemu-x87_64: Could not open '/lib64/ld-linux-x86-64.so.2

Specify platform to ensure build uses the correct architecture.
  • Loading branch information
JameelB committed Feb 27, 2023
1 parent 1122f01 commit 2a5f67e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM registry.access.redhat.com/ubi9-minimal:9.1.0 AS builder
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9-minimal:9.1.0 AS builder

RUN microdnf install -y tar gzip make which git

Expand All @@ -14,7 +14,7 @@ COPY . ./
RUN go mod vendor
RUN make binary

FROM registry.access.redhat.com/ubi9-minimal:9.1.0
FROM --platform=linux/amd64 registry.access.redhat.com/ubi9-minimal:9.1.0

COPY --from=builder /workspace/kas-fleet-manager /usr/local/bin/

Expand Down

0 comments on commit 2a5f67e

Please sign in to comment.