use opensuse/leap, and remove awk linkage

Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
Thomas Sjögren 2020-04-15 10:54:17 +02:00
parent 0307da4c61
commit 9f92e46df8

View file

@ -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"]