forked from kube-reporting/metering-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.reporting-operator.rhel
24 lines (17 loc) · 1.05 KB
/
Dockerfile.reporting-operator.rhel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM registry.svc.ci.openshift.org/ocp/builder:rhel-8-golang-1.15-openshift-4.7 AS build
COPY . /go/src/github.com/kube-reporting/metering-operator
WORKDIR /go/src/github.com/kube-reporting/metering-operator
ENV GOCACHE='/tmp'
RUN make reporting-operator-bin RUN_UPDATE_CODEGEN=false CHECK_GO_FILES=false
FROM registry.svc.ci.openshift.org/ocp/4.7:base
RUN yum install --setopt=skip_missing_names_on_install=False -y \
ca-certificates bash
COPY --from=build /go/src/github.com/kube-reporting/metering-operator/bin/reporting-operator /usr/local/bin/reporting-operator
USER 3001
ENTRYPOINT ["reporting-operator"]
CMD ["start"]
LABEL io.k8s.display-name="OpenShift metering-reporting-operator" \
io.k8s.description="This is a component of OpenShift Container Platform and manages collecting data from monitoring and running reports." \
summary="This is a component of OpenShift Container Platform and manages collecting data from monitoring and running reports." \
io.openshift.tags="openshift" \
maintainer="<metering-team@redhat.com>"