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

Commit

Permalink
fix arm image build issue (#114)
Browse files Browse the repository at this point in the history
Signed-off-by: haoqing0110 <qhao@redhat.com>
  • Loading branch information
haoqing0110 authored Jun 5, 2023
1 parent d5cdc5b commit 02a6082
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 02a6082

Please sign in to comment.