Merge pull request #112 from konstruktoid/alpine_docker

keep docker updated, shrink image
This commit is contained in:
Thomas Sjögren 2015-12-22 20:58:48 +01:00
commit cfa653d8d8
2 changed files with 24 additions and 2 deletions

View file

@ -2,11 +2,22 @@
FROM alpine:3.2
ENV VERSION 1.9.1
MAINTAINER dockerbench.com
WORKDIR /usr/bin
RUN apk update && \
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

View file

@ -2,11 +2,22 @@
FROM alpine:3.2
ENV VERSION 1.9.1
MAINTAINER dockerbench.com
WORKDIR /usr/bin
RUN apk update && \
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