mirror of
https://github.com/docker/docker-bench-security.git
synced 2025-01-18 16:22:33 +01:00
keep docker updated, shrink image
Signed-off-by: Thomas Sjögren <konstruktoid@users.noreply.github.com>
This commit is contained in:
parent
5155cae50a
commit
b8728927e4
2 changed files with 24 additions and 2 deletions
13
Dockerfile
13
Dockerfile
|
@ -2,11 +2,22 @@
|
||||||
|
|
||||||
FROM alpine:3.2
|
FROM alpine:3.2
|
||||||
|
|
||||||
|
ENV VERSION 1.9.1
|
||||||
|
|
||||||
MAINTAINER dockerbench.com
|
MAINTAINER dockerbench.com
|
||||||
|
|
||||||
|
WORKDIR /usr/bin
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk upgrade && \
|
apk upgrade && \
|
||||||
apk --update add docker
|
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
|
RUN mkdir /docker-bench-security
|
||||||
|
|
||||||
|
|
|
@ -2,11 +2,22 @@
|
||||||
|
|
||||||
FROM alpine:3.2
|
FROM alpine:3.2
|
||||||
|
|
||||||
|
ENV VERSION 1.9.1
|
||||||
|
|
||||||
MAINTAINER dockerbench.com
|
MAINTAINER dockerbench.com
|
||||||
|
|
||||||
|
WORKDIR /usr/bin
|
||||||
|
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk upgrade && \
|
apk upgrade && \
|
||||||
apk --update add docker
|
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
|
RUN mkdir /docker-bench-security
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue