1
0
mirror of https://github.com/aquasecurity/kube-bench.git synced 2024-11-29 19:38:12 +00:00
kube-bench/Dockerfile

22 lines
714 B
Docker
Raw Normal View History

2017-11-27 11:51:20 +00:00
FROM golang:1.9
2017-06-20 06:53:34 +00:00
WORKDIR /kube-bench
RUN go get github.com/aquasecurity/kube-bench
2017-11-27 11:51:20 +00:00
FROM alpine:latest
WORKDIR /
2017-11-27 11:51:20 +00:00
COPY --from=0 /go/bin/kube-bench /kube-bench
COPY cfg cfg
COPY 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"