-
Notifications
You must be signed in to change notification settings - Fork 251
Expand file tree
/
Copy pathDockerfile.rhel
More file actions
15 lines (14 loc) · 872 Bytes
/
Copy pathDockerfile.rhel
File metadata and controls
15 lines (14 loc) · 872 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.26-openshift-5.0 AS builder
ARG TAGS=""
WORKDIR /go/src/github.com/openshift/cluster-version-operator
COPY . .
RUN hack/build-go.sh; \
mkdir -p /tmp/build; \
cp _output/linux/$(go env GOARCH)/cluster-version-operator _output/linux/$(go env GOARCH)/cluster-version-operator-tests.gz /tmp/build/
FROM registry.ci.openshift.org/ocp/5.0:base-rhel9
COPY --from=builder /tmp/build/cluster-version-operator /tmp/build/cluster-version-operator-tests.gz /usr/bin/
COPY install /manifests
COPY vendor/github.com/openshift/api/config/v1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/
COPY vendor/github.com/openshift/api/operator/v1alpha1/zz_generated.crd-manifests/0000_00_cluster-version-operator_* /manifests/
COPY bootstrap /bootstrap
ENTRYPOINT ["/usr/bin/cluster-version-operator"]