2017-01-11 09:26:28 +01:00
|
|
|
FROM alpine:3.5
|
2015-06-23 22:46:03 +02:00
|
|
|
|
2016-12-20 11:41:46 +01:00
|
|
|
LABEL org.label-schema.name="docker-bench-security" \
|
|
|
|
org.label-schema.url="https://dockerbench.com" \
|
|
|
|
org.label-schema.vcs-url="https://github.com/docker/docker-bench-security.git"
|
2015-12-22 20:46:56 +01:00
|
|
|
|
2017-01-19 20:46:33 +01:00
|
|
|
RUN \
|
|
|
|
apk add --no-cache \
|
|
|
|
docker \
|
|
|
|
dumb-init \
|
|
|
|
git && \
|
|
|
|
git clone https://github.com/docker/docker-bench-security.git /tmp/bench-security && \
|
|
|
|
cp /tmp/bench-security/*.sh /usr/local/bin && \
|
|
|
|
cp -R /tmp/bench-security/tests /usr/local/bin && \
|
|
|
|
apk del git && \
|
|
|
|
rm -rf /tmp/*
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]
|