-
Notifications
You must be signed in to change notification settings - Fork 51
/
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.21.11-9 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:31f00ba1d79523e182624c96e05b2f5ca66ea35d64959d84acdc8b670429415f
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"]