File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1717# Use BUILDPLATFORM to ensure the builder always runs natively on the host machine
1818FROM --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
2121ARG TARGETARCH
22+ ARG TARGETPLATFORM
2223
2324ENV GOPATH=/go/
2425USER root
@@ -39,7 +40,7 @@ RUN make GOARCH=${TARGETARCH} compile-devworkspace-controller
3940RUN 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
4344RUN microdnf -y update && \
4445 microdnf clean all && \
4546 rm -rf /var/cache/yum && \
You can’t perform that action at this time.
0 commit comments