-
Notifications
You must be signed in to change notification settings - Fork 105
/
Copy pathDockerfile
21 lines (18 loc) · 1 KB
/
Dockerfile
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-9-golang-1.23-openshift-4.19 AS builder
WORKDIR /go/src/github.com/operator-framework/operator-marketplace
COPY . .
RUN make osbs-build
FROM registry.ci.openshift.org/ocp/4.19:base-rhel9
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/zz_generated.crd-manifests/*operatorhubs.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"]