Skip to content

Commit

Permalink
fix arm image build issue
Browse files Browse the repository at this point in the history
Signed-off-by: haoqing0110 <qhao@redhat.com>
  • Loading branch information
haoqing0110 committed Jun 5, 2023
1 parent d5cdc5b commit b03b190
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
FROM golang:1.19 AS builder
ARG OS=linux
ARG ARCH=amd64
WORKDIR /go/src/open-cluster-management.io/placement
COPY . .
ENV GO_PACKAGE open-cluster-management.io/placement

RUN make build --warn-undefined-variables
RUN make build-e2e --warn-undefined-variables
RUN GOOS=${OS} \
GOARCH=${ARCH} \
make build --warn-undefined-variables
RUN GOOS=${OS} \
GOARCH=${ARCH} \
make build-e2e --warn-undefined-variables

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

0 comments on commit b03b190

Please sign in to comment.