From 4535d08967154d38cc555de8f323da71e9ca6458 Mon Sep 17 00:00:00 2001 From: binary Date: Thu, 26 Jan 2017 11:58:12 +0100 Subject: [PATCH] refactor(docker): update Dockerfile.alpine to latest version Signed-off-by: binary --- distros/Dockerfile.alpine | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/distros/Dockerfile.alpine b/distros/Dockerfile.alpine index 65ae83b..0ced361 100644 --- a/distros/Dockerfile.alpine +++ b/distros/Dockerfile.alpine @@ -7,12 +7,14 @@ LABEL org.label-schema.name="docker-bench-security" \ 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 && \ - rm -rf /tmp/* + dumb-init && \ + rm -rf /usr/bin/docker-* /usr/bin/dockerd && \ + mkdir /usr/local/bin/tests + +COPY ./*.sh /usr/local/bin/ + +COPY ./tests/*.sh /usr/local/bin/tests/ + WORKDIR /usr/local/bin