Skip to content

Commit

Permalink
fix: ARM images (openshift#55)
Browse files Browse the repository at this point in the history
Signed-off-by: Mateus Oliveira <[email protected]>
  • Loading branch information
mateusoliveira43 authored and sseago committed Dec 11, 2024
1 parent bfb4bd5 commit d7e964e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Dockerfile.ubi
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
FROM quay.io/konveyor/builder:ubi9-latest AS builder
ARG TARGETOS
ARG TARGETARCH

ENV GOPATH=$APP_ROOT

COPY . $APP_ROOT/src/velero-plugin-for-aws

WORKDIR $APP_ROOT/src/velero-plugin-for-aws
RUN CGO_ENABLED=0 GOOS=linux go build -v -o $APP_ROOT/bin/velero-plugin-for-aws -mod=mod ./velero-plugin-for-aws

RUN CGO_ENABLED=0 GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH} go build -v -o $APP_ROOT/bin/velero-plugin-for-aws -mod=mod ./velero-plugin-for-aws

FROM registry.access.redhat.com/ubi9-minimal
RUN mkdir /plugins
Expand Down

0 comments on commit d7e964e

Please sign in to comment.