From 9f92e46df84c4bede0f53175178edf99045c12c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20Sj=C3=B6gren?= Date: Wed, 15 Apr 2020 10:54:17 +0200 Subject: [PATCH] use opensuse/leap, and remove awk linkage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Sjögren --- distros/Dockerfile.openSUSE | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/distros/Dockerfile.openSUSE b/distros/Dockerfile.openSUSE index 9e455f0..d5a0add 100644 --- a/distros/Dockerfile.openSUSE +++ b/distros/Dockerfile.openSUSE @@ -1,15 +1,13 @@ # REPOSITORY https://github.com/docker/docker-bench-security +FROM opensuse/leap:latest -FROM opensuse - -MAINTAINER security@suse.com - -RUN zypper -n in docker iproute2 audit - -RUN mkdir /docker-bench-security +RUN zypper -n in audit docker iproute2 && \ + mkdir /docker-bench-security && \ + rm /usr/bin/awk && \ + cp /usr/bin/gawk /usr/bin/awk COPY . /docker-bench-security WORKDIR /docker-bench-security -ENTRYPOINT ["/bin/sh", "docker-bench-security.sh"] +ENTRYPOINT ["/bin/bash", "docker-bench-security.sh"]