forked from openshift/configuration-anomaly-detection
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
40 lines (31 loc) · 1.46 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
ARG BUILDER_IMG=registry.ci.openshift.org/openshift/release:golang-1.19
FROM $BUILDER_IMG as builder
ADD . /opt
WORKDIR /opt
RUN git update-index --refresh; make CGO_ENABLED=0 cadctl-install-local-force
FROM quay.io/app-sre/ubi8-ubi-minimal:8.6-854 as runner
COPY --from=builder /opt/cadctl/cadctl /bin/cadctl
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"]