forked from openshift/telemeter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
20 lines (18 loc) · 958 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM registry.ci.openshift.org/ocp/builder:rhel-8-golang-1.20-openshift-4.15
ENV GOFLAGS="-mod=vendor"
COPY . /go/src/github.com/openshift/telemeter
RUN cd /go/src/github.com/openshift/telemeter && \
go build ./cmd/telemeter-client && \
go build ./cmd/telemeter-server && \
go build ./cmd/rhelemeter-server && \
go build ./cmd/authorization-server
FROM registry.ci.openshift.org/ocp/4.15:base
LABEL io.k8s.display-name="OpenShift Telemeter" \
io.k8s.description="" \
io.openshift.tags="openshift,monitoring" \
summary="" \
maintainer="OpenShift Monitoring Team <[email protected]>"
COPY --from=0 /go/src/github.com/openshift/telemeter/telemeter-client /usr/bin/
COPY --from=0 /go/src/github.com/openshift/telemeter/telemeter-server /usr/bin/
COPY --from=0 /go/src/github.com/openshift/telemeter/rhelemeter-server /usr/bin/
COPY --from=0 /go/src/github.com/openshift/telemeter/authorization-server /usr/bin/