Skip to content

Commit 90646bf

Browse files
committed
fixup! fixup! fixup! fix: M-series macbook related issues
Signed-off-by: Oleksii Kurinnyi <[email protected]>
1 parent b4e5b20 commit 90646bf

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,9 @@
1717
# Use BUILDPLATFORM to ensure the builder always runs natively on the host machine
1818
FROM --platform=$BUILDPLATFORM registry.access.redhat.com/ubi9/go-toolset:1.24.4-1753853351 AS builder
1919

20-
# Accept TARGETARCH, which is automatically passed by the builder
20+
# Accept TARGETARCH and TARGETPLATFORM, which are automatically passed by the builder
2121
ARG TARGETARCH
22+
ARG TARGETPLATFORM
2223

2324
ENV GOPATH=/go/
2425
USER root
@@ -39,7 +40,7 @@ RUN make GOARCH=${TARGETARCH} compile-devworkspace-controller
3940
RUN make GOARCH=${TARGETARCH} compile-webhook-server
4041

4142
# https://access.redhat.com/containers/?tab=tags#/registry.access.redhat.com/ubi9-minimal
42-
FROM registry.access.redhat.com/ubi9-minimal:9.6-1749489516
43+
FROM --platform=$TARGETPLATFORM registry.access.redhat.com/ubi9-minimal:9.6-1749489516
4344
RUN microdnf -y update && \
4445
microdnf clean all && \
4546
rm -rf /var/cache/yum && \

0 commit comments

Comments
 (0)