forked from prometheus-operator/prometheus-operator
-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathContainerfile.operator
More file actions
29 lines (21 loc) · 837 Bytes
/
Containerfile.operator
File metadata and controls
29 lines (21 loc) · 837 Bytes
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
# Copyright Contributors to the Open Cluster Management project
# Licensed under the Apache License 2.0
FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.25 AS builder
WORKDIR /workspace
COPY . .
RUN go mod vendor
RUN GOFLAGS="" CGO_ENABLED=1 go build -o operator ./cmd/operator/
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
COPY --from=builder /workspace/operator /bin/operator
USER 1001
ENTRYPOINT ["/bin/operator"]
LABEL com.redhat.component="prometheus-operator" \
name="rhacm2/acm-prometheus-rhel9" \
cpe="cpe:/a:redhat:acm:2.17::el9" \
summary="prometheus-operator" \
io.openshift.expose-services="" \
io.openshift.tags="data,images" \
io.k8s.display-name="prometheus-operator" \
maintainer="" \
description="prometheus-operator" \
io.k8s.description="prometheus-operator"