docker-bench-security/Dockerfile
Thomas Sjögren 0a10dde3c0 use alpine 3.5
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
2017-01-11 09:26:28 +01:00

28 lines
843 B
Docker

FROM alpine:3.5
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"
ENV VERSION 1.10.0
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"]