2017-01-11 09:26:28 +01:00
|
|
|
FROM alpine:3.5
|
2015-05-11 06:08:28 +02:00
|
|
|
|
2016-12-20 11:41:46 +01:00
|
|
|
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"
|
2015-12-22 20:46:56 +01:00
|
|
|
|
2017-01-11 15:32:05 +01:00
|
|
|
ENV VERSION 1.12.6
|
|
|
|
ENV SHA256 cadc6025c841e034506703a06cf54204e51d0cadfae4bae62628ac648d82efdd
|
2015-07-01 21:00:51 +02:00
|
|
|
|
2015-12-22 20:46:56 +01:00
|
|
|
WORKDIR /usr/bin
|
|
|
|
|
2015-06-23 21:32:35 +02:00
|
|
|
RUN apk update && \
|
|
|
|
apk upgrade && \
|
2017-01-11 15:32:05 +01:00
|
|
|
apk --update add coreutils wget ca-certificates && \
|
|
|
|
wget https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.tgz && \
|
|
|
|
wget https://get.docker.com/builds/Linux/x86_64/docker-$VERSION.tgz.sha256 && \
|
|
|
|
sha256sum -c docker-$VERSION.tgz.sha256 && \
|
|
|
|
echo "$SHA256 docker-$VERSION.tgz" | sha256sum -c - && \
|
|
|
|
tar -xzvf docker-$VERSION.tgz -C /tmp && \
|
|
|
|
mv /tmp/docker/docker . && \
|
|
|
|
chmod u+x docker* && \
|
|
|
|
rm -rf /tmp/docker* && \
|
|
|
|
apk del wget ca-certificates && \
|
|
|
|
rm -rf /var/cache/apk/* docker-$VERSION.tgz docker-$VERSION.tgz.sha256
|
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"]
|