2015-07-01 21:00:51 +02:00
|
|
|
# REPOSITORY https://github.com/docker/docker-bench-security
|
|
|
|
|
2015-07-25 14:13:21 +02:00
|
|
|
FROM alpine:3.2
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2015-12-22 20:46:56 +01:00
|
|
|
ENV VERSION 1.9.1
|
|
|
|
|
2015-07-01 21:00:51 +02:00
|
|
|
MAINTAINER dockerbench.com
|
|
|
|
|
2015-12-22 20:46:56 +01:00
|
|
|
WORKDIR /usr/bin
|
|
|
|
|
2015-06-23 21:32:35 +02:00
|
|
|
RUN apk update && \
|
|
|
|
apk upgrade && \
|
2015-12-22 20:46:56 +01:00
|
|
|
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-11 06:08:28 +02:00
|
|
|
|
2015-05-28 00:08:25 +02:00
|
|
|
RUN mkdir /docker-bench-security
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2015-05-28 00:08:25 +02:00
|
|
|
COPY . /docker-bench-security
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2015-05-28 00:08:25 +02:00
|
|
|
WORKDIR /docker-bench-security
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2015-05-28 00:08:25 +02:00
|
|
|
ENTRYPOINT ["/bin/sh", "docker-bench-security.sh"]
|