forked from thanos-io/thanos
-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathContainerfile.operator
More file actions
35 lines (24 loc) · 1.02 KB
/
Containerfile.operator
File metadata and controls
35 lines (24 loc) · 1.02 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
# 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 cd promu && go build -mod=mod -o /cachi2/output/deps/gomod/bin/promu
WORKDIR /workspace
RUN go mod vendor && /cachi2/output/deps/gomod/bin/promu -c ".promu.prow.yaml" build -v --cgo --prefix /go/bin/
# -----------------------------------------------------------------------------
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
LABEL maintainer="The ACM Thanos maintainers"
COPY --from=builder /go/bin/thanos /bin/thanos
ENTRYPOINT [ "/bin/thanos" ]
LABEL com.redhat.component="thanos" \
url="https://github.com/stolostron/thanos" \
name="rhacm2/thanos-rhel9" \
cpe="cpe:/a:redhat:acm:2.17::el9" \
summary="thanos" \
io.openshift.expose-services="" \
io.openshift.tags="data,images" \
io.k8s.display-name="thanos" \
maintainer="" \
description="thanos" \
io.k8s.description="thanos"