Skip to content

Commit

Permalink
Fix velero build on temporary image
Browse files Browse the repository at this point in the history
  • Loading branch information
jmontleon authored and sseago committed Mar 8, 2022
1 parent 416b62c commit 6d37d59
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.ubi
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM quay.io/app-sre/boilerplate:image-v2.1.0 AS builder
ENV GOPATH=$APP_ROOT
COPY . /go/src/github.com/vmware-tanzu/velero
WORKDIR /go/src/github.com/vmware-tanzu/velero
RUN CGO_ENABLED=0 GOOS=linux go build -a -mod=mod -ldflags '-extldflags "-static" -X github.com/vmware-tanzu/velero/pkg/buildinfo.Version=konveyor-dev' -o $APP_ROOT/src/velero github.com/vmware-tanzu/velero/cmd/velero
RUN CGO_ENABLED=0 GOOS=linux go build -a -mod=mod -ldflags '-extldflags "-static" -X github.com/vmware-tanzu/velero/pkg/buildinfo.Version=konveyor-dev' -o /go/src/velero github.com/vmware-tanzu/velero/cmd/velero

FROM registry.access.redhat.com/ubi8/go-toolset:1.14.7 AS restic-builder
ENV GOPATH=$APP_ROOT
Expand All @@ -15,7 +15,7 @@ RUN CGO_ENABLED=0 GOOS=linux go build -a -mod=mod -ldflags '-extldflags "-static

FROM registry.access.redhat.com/ubi8-minimal
RUN microdnf -y update && microdnf -y install nmap-ncat && microdnf clean all
COPY --from=builder /go/src/github.com/vmware-tanzu/velero velero
COPY --from=builder /go/src/velero velero
COPY --from=restic-builder /opt/app-root/src/restic /usr/bin/restic

USER nobody:nobody
Expand Down

0 comments on commit 6d37d59

Please sign in to comment.