-
Notifications
You must be signed in to change notification settings - Fork 35
/
Dockerfile
42 lines (33 loc) · 1.51 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
ARG BUILDER_IMG=registry.ci.openshift.org/openshift/release:golang-1.21
FROM $BUILDER_IMG as builder
ADD . /opt
WORKDIR /opt
RUN make CGO_ENABLED=0 build-cadctl
RUN make CGO_ENABLED=0 build-interceptor
FROM quay.io/app-sre/ubi8-ubi-minimal:8.10 as runner
COPY --from=builder /opt/bin/cadctl /bin/cadctl
COPY --from=builder /opt/bin/interceptor /bin/interceptor
ARG BUILD_DATE
ARG VERSION
ARG VCS_REF
ARG DOCKERFILE_PATH
LABEL vendor="RedHat" \
name="openshift/configuration-anomaly-detection" \
description="a CLI tool to detect and mitigate configuration mishaps" \
io.k8s.display-name="openshift/configuration-anomaly-detection" \
io.k8s.description="a CLI tool to detect and mitigate configuration mishaps" \
maintainer="RedHat <>" \
version="$VERSION" \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.description="a CLI tool to detect and mitigate configuration mishaps" \
org.label-schema.docker.cmd="docker run --rm openshift/configuration-anomaly-detection" \
org.label-schema.docker.dockerfile=$DOCKERFILE_PATH \
org.label-schema.name="openshift/configuration-anomaly-detection" \
org.label-schema.schema-version="0.1.0" \
org.label-schema.vcs-branch=$VCS_BRANCH \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-url="https://github.com/openshift/configuration-anomaly-detection" \
org.label-schema.vendor="openshift/configuration-anomaly-detection" \
org.label-schema.version=$VERSION
RUN microdnf install jq
ENTRYPOINT ["/bin/cadctl"]