-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathkonflux.Dockerfile
More file actions
20 lines (17 loc) · 954 Bytes
/
konflux.Dockerfile
File metadata and controls
20 lines (17 loc) · 954 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_golang_1.25 AS builder
COPY . /workspace
WORKDIR /workspace/
ENV GOEXPERIMENT strictfipsruntime
RUN CGO_ENABLED=1 GOOS=linux go build -v -mod=vendor -tags strictfipsruntime -o /workspace/bin/hypershift-oadp-plugin .
FROM registry.redhat.io/ubi9/ubi:latest
RUN dnf -y install openssl && dnf -y reinstall tzdata && dnf clean all
RUN mkdir /plugins
COPY --from=builder /workspace/bin/hypershift-oadp-plugin /plugins/
COPY LICENSE /licenses/
USER 65534:65534
ENTRYPOINT ["/bin/bash", "-c", "cp /plugins/* /target/."]
LABEL description="OpenShift API for Data Protection - Hypershift Velero Plugin"
LABEL io.k8s.description="OpenShift API for Data Protection - Hypershift Velero Plugin"
LABEL io.k8s.display-name="OpenShift API for Data Protection Hypershift Velero Plugin"
LABEL io.openshift.tags="migration"
LABEL summary="OpenShift API for Data Protection - Hypershift Velero Plugin"