docker-bench-security/distros/Dockerfile.alpine
Maik Ellerbrock d468e23f48
build(docker): add docker best practices
Signed-off-by: Maik Ellerbrock <opensource@frapsoft.com>
2017-01-20 02:47:17 +01:00

18 lines
576 B
Text

FROM alpine:3.5
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"
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" ]