Skip to content
This repository was archived by the owner on Oct 18, 2024. It is now read-only.

Commit 02a6082

Browse files
authored
fix arm image build issue (#114)
Signed-off-by: haoqing0110 <[email protected]>
1 parent d5cdc5b commit 02a6082

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,16 @@
11
FROM golang:1.19 AS builder
2+
ARG OS=linux
3+
ARG ARCH=amd64
24
WORKDIR /go/src/open-cluster-management.io/placement
35
COPY . .
46
ENV GO_PACKAGE open-cluster-management.io/placement
57

6-
RUN make build --warn-undefined-variables
7-
RUN make build-e2e --warn-undefined-variables
8+
RUN GOOS=${OS} \
9+
GOARCH=${ARCH} \
10+
make build --warn-undefined-variables
11+
RUN GOOS=${OS} \
12+
GOARCH=${ARCH} \
13+
make build-e2e --warn-undefined-variables
814

915
FROM registry.access.redhat.com/ubi8/ubi-minimal:latest
1016
ENV USER_UID=10001

0 commit comments

Comments
 (0)