-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContainerfile.loki-operator
More file actions
41 lines (29 loc) · 1.27 KB
/
Containerfile.loki-operator
File metadata and controls
41 lines (29 loc) · 1.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM quay.io/redhat-services-prod/openshift/boilerplate:image-v8.0.0 as builder
WORKDIR /workspace
COPY loki-operator/LICENSE LICENSE
COPY loki-operator/operator/api/ api/
COPY loki-operator/operator/go.mod go.mod
COPY loki-operator/operator/go.sum go.sum
RUN go mod download
COPY loki-operator/operator/cmd/loki-operator/main.go cmd/loki-operator/main.go
COPY loki-operator/operator/internal/ internal/
RUN go build -mod=readonly -a -o manager cmd/loki-operator/main.go
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
WORKDIR /
ARG VERSION
LABEL org.label-schema.vendor="Red Hat" \
vendor="Red Hat, Inc." \
com.redhat.component="rhobs-loki-operator" \
name="loki-operator" \
maintainer="team-monitoring@redhat.com" \
version="$VERSION" \
release="$VERSION" \
description="the Loki Operator provides Kubernetes native deployment and management of Loki components." \
io.k8s.description="the Loki Operator provides Kubernetes native deployment and management of Loki components." \
summary="Kubernetes Operator for Loki" \
url="https://github.com/rhobs/rhobs-konflux-loki-operator" \
distribution-scope="restricted"
COPY --from=builder /workspace/manager .
COPY --from=builder /workspace/LICENSE /licenses/LICENSE
USER 65532:65532
ENTRYPOINT ["/manager"]