docker-bench-security/Dockerfile
Julien Del-Piccolo 028eabb282 Add wrapper to download specific version of docker-bench-security on the fly.
Signed-off-by: Julien Del-Piccolo <julien@del-piccolo.com>
2017-02-24 17:26:31 +01:00

27 lines
No EOL
668 B
Docker

FROM alpine:3.5
ENV DBS_VERSION=
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 \
openssl && \
rm -rf /usr/bin/docker-* /usr/bin/dockerd && \
mkdir /usr/local/bin/tests && \
mkdir /usr/share/docker-bench-security
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", "get-specific-version.sh", "docker-bench-security.sh" ]