mirror of
https://github.com/docker/docker-bench-security.git
synced 2024-11-01 08:31:44 +01:00
fix(docker): add workdir to dockerfile
Signed-off-by: Maik Ellerbrock <opensource@frapsoft.com>
This commit is contained in:
parent
d468e23f48
commit
562e38da7c
2 changed files with 23 additions and 1 deletions
20
distros/Dockerfile
Normal file
20
distros/Dockerfile
Normal file
|
@ -0,0 +1,20 @@
|
|||
FROM alpine:3.5
|
||||
|
||||
LABEL org.label-schema.name="docker-bench-security" \
|
||||
org.label-schema.url="https://dockerbench.com" \
|
||||
org.label-schema.vcs-url="https://github.com/docker/docker-bench-security.git"
|
||||
|
||||
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/*
|
||||
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]
|
||||
|
|
@ -12,7 +12,9 @@ RUN \
|
|||
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 && \
|
||||
apk del git && \
|
||||
rm -rf /tmp/*
|
||||
|
||||
WORKDIR /usr/local/bin
|
||||
|
||||
ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]
|
||||
|
||||
|
|
Loading…
Reference in a new issue