mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
7c6a637b62
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
28 lines
738 B
Docker
28 lines
738 B
Docker
# REPOSITORY https://github.com/docker/docker-bench-security
|
|
|
|
FROM alpine:3.2
|
|
|
|
ENV VERSION 1.10.0
|
|
|
|
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/*
|
|
|
|
RUN mkdir /docker-bench-security
|
|
|
|
COPY . /docker-bench-security
|
|
|
|
WORKDIR /docker-bench-security
|
|
|
|
ENTRYPOINT ["/bin/sh", "docker-bench-security.sh"]
|