forked from grafana/loki
-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile.ocp
More file actions
17 lines (15 loc) · 900 Bytes
/
Dockerfile.ocp
File metadata and controls
17 lines (15 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder
WORKDIR /go/src/github.com/grafana/loki
COPY . .
RUN touch loki-build-image/.uptodate && mkdir /build
RUN make clean && make BUILD_IN_CONTAINER=false loki
FROM registry.ci.openshift.org/ocp/4.16:base-rhel9
LABEL io.k8s.display-name="OpenShift Loki" \
io.k8s.description="Horizontally-scalable, highly-available, multi-tenant log aggregation system inspired by Prometheus." \
io.openshift.tags="grafana,prometheus,monitoring" \
maintainer="OpenShift Development <dev@lists.openshift.redhat.com>" \
version="v3.0.0"
COPY --from=builder /go/src/github.com/grafana/loki/cmd/loki/loki /usr/bin/loki
COPY --from=builder /go/src/github.com/grafana/loki/cmd/loki/loki-docker-config.yaml /etc/loki/local-config.yaml
ENTRYPOINT ["/usr/bin/loki"]
CMD ["-config.file=/etc/loki/local-config.yaml"]