2017-11-27 11:51:20 +00:00
|
|
|
FROM golang:1.9
|
2017-06-20 06:53:34 +00:00
|
|
|
WORKDIR /kube-bench
|
2017-06-20 09:53:28 +00:00
|
|
|
RUN go get github.com/aquasecurity/kube-bench
|
2017-10-02 10:38:45 +00:00
|
|
|
|
2017-11-27 11:51:20 +00:00
|
|
|
FROM alpine:latest
|
2017-06-20 09:53:28 +00:00
|
|
|
WORKDIR /
|
2017-11-27 11:51:20 +00:00
|
|
|
COPY --from=0 /go/bin/kube-bench /kube-bench
|
2018-01-30 16:56:23 +00:00
|
|
|
COPY --from=0 /go/src/github.com/aquasecurity/kube-bench/cfg /cfg
|
|
|
|
COPY --from=0 /go/src/github.com/aquasecurity/kube-bench/entrypoint.sh /entrypoint.sh
|
2017-06-20 06:53:34 +00:00
|
|
|
ENTRYPOINT /entrypoint.sh
|
2017-06-22 15:15:12 +00:00
|
|
|
|
|
|
|
# Build-time metadata as defined at http://label-schema.org
|
|
|
|
ARG BUILD_DATE
|
|
|
|
ARG VCS_REF
|
|
|
|
LABEL org.label-schema.build-date=$BUILD_DATE \
|
|
|
|
org.label-schema.name="kube-bench" \
|
|
|
|
org.label-schema.description="Run the CIS Kubernetes Benchmark tests" \
|
|
|
|
org.label-schema.url="https://github.com/aquasecurity/kube-bench" \
|
|
|
|
org.label-schema.vcs-ref=$VCS_REF \
|
|
|
|
org.label-schema.vcs-url="https://github.com/aquasecurity/kube-bench" \
|
|
|
|
org.label-schema.schema-version="1.0"
|