docker-bench-security/Dockerfile

29 lines
737 B
Text
Raw Normal View History

# REPOSITORY https://github.com/docker/docker-bench-security
FROM alpine:3.2
ENV VERSION 1.9.1
MAINTAINER dockerbench.com
WORKDIR /usr/bin
RUN apk update && \
apk upgrade && \
apk --update add curl && \
curl -sS https://get.docker.com/builds/Linux/x86_64/docker-$VERSION > docker-$VERSION && \
curl -sS https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.sha256 > docker-$VERSION.sha256 && \
sha256sum -c docker-$VERSION.sha256 && \
ln -s docker-$VERSION docker && \
chmod u+x docker-$VERSION && \
apk del curl && \
rm -rf /var/cache/apk/*
2015-05-28 00:08:25 +02:00
RUN mkdir /docker-bench-security
2015-05-28 00:08:25 +02:00
COPY . /docker-bench-security
2015-05-28 00:08:25 +02:00
WORKDIR /docker-bench-security
2015-05-28 00:08:25 +02:00
ENTRYPOINT ["/bin/sh", "docker-bench-security.sh"]