mirror of
https://github.com/docker/docker-bench-security.git
synced 2024-11-01 08:31:44 +01:00
f262f7d5b5
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
24 lines
565 B
Docker
24 lines
565 B
Docker
FROM alpine:3.6
|
|
|
|
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 upgrade --no-cache && \
|
|
apk add --no-cache \
|
|
docker \
|
|
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
|
|
|
|
HEALTHCHECK CMD exit 0
|
|
|
|
ENTRYPOINT [ "/usr/bin/dumb-init", "docker-bench-security.sh" ]
|
|
|