Merge pull request #427 from konstruktoid/ISSUE425

use opensuse/leap, and remove awk linkage
This commit is contained in:
Thomas Sjögren 2020-04-15 08:55:27 +00:00 committed by GitHub
commit 2972b685fc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,15 +1,13 @@
# REPOSITORY https://github.com/docker/docker-bench-security # REPOSITORY https://github.com/docker/docker-bench-security
FROM opensuse/leap:latest
FROM opensuse RUN zypper -n in audit docker iproute2 && \
mkdir /docker-bench-security && \
MAINTAINER security@suse.com rm /usr/bin/awk && \
cp /usr/bin/gawk /usr/bin/awk
RUN zypper -n in docker iproute2 audit
RUN mkdir /docker-bench-security
COPY . /docker-bench-security COPY . /docker-bench-security
WORKDIR /docker-bench-security WORKDIR /docker-bench-security
ENTRYPOINT ["/bin/sh", "docker-bench-security.sh"] ENTRYPOINT ["/bin/bash", "docker-bench-security.sh"]