mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-19 00:32:34 +01:00
refactor(docker): update Dockerfile.alpine to latest version
Signed-off-by: binary <binary@webdev.fritz.box>
This commit is contained in:
parent
85a32bf8c1
commit
4535d08967
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue