2017-06-20 06:53:34 +00:00
|
|
|
FROM golang:1.4.1
|
|
|
|
RUN mkdir /kube-bench
|
|
|
|
WORKDIR /kube-bench
|
2017-06-20 07:42:37 +00:00
|
|
|
RUN wget https://raw.githubusercontent.com/aquasecurity/kube-bench/master/cfg/config.yaml && \
|
|
|
|
wget https://raw.githubusercontent.com/aquasecurity/kube-bench/master/cfg/federated.yaml && \
|
|
|
|
wget https://raw.githubusercontent.com/aquasecurity/kube-bench/master/cfg/master.yaml && \
|
|
|
|
wget https://raw.githubusercontent.com/aquasecurity/kube-bench/master/cfg/node.yaml
|
|
|
|
RUN go get github.com/aquasecurity/kube-bench
|
2017-06-20 09:00:17 +00:00
|
|
|
RUN cp /go/bin/kube-bench /kube-bench/ && chmod +x /kube-bench/kube-bench
|
2017-06-20 06:53:34 +00:00
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
RUN mkdir -p /kube-bench/cfg
|
2017-06-20 07:42:37 +00:00
|
|
|
COPY --from=0 /kube-bench/kube-bench /kube-bench/kube-bench
|
2017-06-20 06:53:34 +00:00
|
|
|
COPY --from=0 /kube-bench/config.yaml /kube-bench/cfg/config.yaml
|
|
|
|
COPY --from=0 /kube-bench/federated.yaml /kube-bench/cfg/federated.yaml
|
|
|
|
COPY --from=0 /kube-bench/master.yaml /kube-bench/cfg/master.yaml
|
|
|
|
COPY --from=0 /kube-bench/node.yaml /kube-bench/cfg/node.yaml
|
|
|
|
ADD entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT /entrypoint.sh
|