forked from operator-framework/operator-marketplace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.rhel7
21 lines (17 loc) · 915 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.svc.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.6 AS builder
WORKDIR /go/src/github.com/operator-framework/operator-marketplace
COPY . .
RUN make osbs-build
FROM registry.svc.ci.openshift.org/ocp/4.6: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
ADD manifests /manifests
ADD defaults /defaults
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"]