forked from redhat-appstudio/o11y
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (20 loc) · 892 Bytes
/
Dockerfile
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
FROM registry.access.redhat.com/ubi9/go-toolset:1.20.10-2 AS builder
# Set the working directory
WORKDIR /opt/app-root/src
COPY go.mod go.sum ./
# Download required dependencies
RUN go mod download
COPY --chown=default:root exporters/**/*.go .
RUN CGO_ENABLED=0 GOOS=linux go build -o /bin/exporters .
EXPOSE 8090
FROM registry.access.redhat.com/ubi9-micro@sha256:8e33df2832f039b4b1adc53efd783f9404449994b46ae321ee4a0bf4499d5c42
COPY --from=builder /bin/exporters /bin/exporters
# It is mandatory to set these labels
LABEL name="Konflux Observability Exporters"
LABEL description="Konflux Observability Exporters"
LABEL com.redhat.component="Konflux Observability Exporters"
LABEL io.k8s.description="Konflux Observability Exporters"
LABEL io.k8s.display-name="o11y-exporters"
LABEL io.openshift.tags="konflux"
LABEL summary="Konflux Observability Exporters"
CMD ["/bin/exporters"]