-
Notifications
You must be signed in to change notification settings - Fork 17
Expand file tree
/
Copy pathDockerfile.p-o-admission-webhook
More file actions
36 lines (28 loc) · 1.32 KB
/
Dockerfile.p-o-admission-webhook
File metadata and controls
36 lines (28 loc) · 1.32 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
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 CGO_ENABLED=0
# Build
RUN make admission-webhook
FROM registry.redhat.io/ubi9/ubi-minimal:latest@sha256:c7d44146f826037f6873d99da479299b889473492d3c1ab8af86f08af04ec8a0
COPY --from=builder workspace/admission-webhook /bin/admission-webhook
COPY --from=builder /workspace/LICENSE /licenses/.
USER nobody
ENTRYPOINT ["/bin/admission-webhook"]
ARG VERSION=v0.89.0
LABEL com.redhat.component="coo-po-admission-webhook" \
name="cluster-observability-operator/obo-prometheus-operator-admission-webhook-rhel9" \
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="Admission Webhook for Prometheus Operator" \
io.openshift.tags="monitoring" \
io.k8s.display-name="Admission Webhook for Prometheus Operator" \
io.k8s.description="Admission Webhook for Prometheus Operator" \
maintainer="OpenShift Monitoring team <team-monitoring-incluster@redhat.com>" \
description="Admission Webhook for Prometheus Operator"