forked from operator-framework/operator-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.rhel7
21 lines (18 loc) · 990 Bytes
/
Dockerfile.rhel7
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.19-openshift-4.12 AS builder
WORKDIR /go/src/github.com/operator-framework/operator-marketplace
COPY . .
RUN make osbs-build
FROM registry.ci.openshift.org/ocp/4.12:base
RUN useradd marketplace-operator
USER marketplace-operator
COPY --from=builder /go/src/github.com/operator-framework/operator-marketplace/build/_output/bin/marketplace-operator /usr/bin
COPY defaults /defaults
COPY manifests /manifests
COPY vendor/github.com/openshift/api/config/v1/*operatorhub.crd.yaml /manifests
LABEL io.k8s.display-name="OpenShift Marketplace Operator" \
io.k8s.description="This is a component of OpenShift Container Platform and manages the OpenShift Marketplace." \
io.openshift.tags="openshift,marketplace" \
io.openshift.release.operator=true \
maintainer="AOS Marketplace <[email protected]>"
# entrypoint specified in operator.yaml as `marketplace-operator`
CMD ["/usr/bin/marketplace-operator"]