-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile.prom-op
More file actions
39 lines (30 loc) · 1.34 KB
/
Dockerfile.prom-op
File metadata and controls
39 lines (30 loc) · 1.34 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
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.25 as builder
WORKDIR /workspace
# Copy source files
COPY obo-prometheus-operator/ .
ENV GOFLAGS='-mod=mod'
ENV GOTOOLCHAIN=local
ENV CGO_ENABLED=1
ENV GOEXPERIMENT=strictfipsruntime
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go build $GOFLAGS -o operator ./cmd/operator/
FROM registry.redhat.io/ubi9/ubi-minimal:latest@sha256:c7d44146f826037f6873d99da479299b889473492d3c1ab8af86f08af04ec8a0
COPY --from=builder /workspace/operator /bin/operator
COPY --from=builder /workspace/LICENSE /licenses/.
# On busybox 'nobody' has uid `65534'
USER 65534
ARG VERSION=v0.89.0
LABEL com.redhat.component="coo-prometheus-operator" \
name="cluster-observability-operator/obo-prometheus-rhel9-operator" \
cpe="cpe:/a:redhat:cluster_observability_operator:1.4::el9" \
version="${VERSION}" \
release="${VERSION}" \
vendor="Red Hat, Inc." \
distribution-scope="public" \
url="https://github.com/rhobs/obo-prometheus-operator" \
summary="Prometheus Operator" \
io.openshift.tags="monitoring" \
io.k8s.display-name="Prometheus Operator" \
io.k8s.description="COO Prometheus Operator" \
maintainer="OpenShift Monitoring team <team-monitoring-incluster@redhat.com>" \
description="Prometheus Operator"
ENTRYPOINT ["/bin/operator"]