Skip to content

Commit

Permalink
upgrade to alpine 3.3 and use --no-cache option
Browse files Browse the repository at this point in the history
The new option in alpine 3.3 avoids creating `/var/cache/apk/*`.
  • Loading branch information
jumanjiman committed Dec 27, 2015
1 parent 377f707 commit 313acbd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Expand Up @@ -3,19 +3,19 @@
#Usage:
#docker run -v /var/run/docker.sock:/var/run/docker.sock -v /var/lib/docker:/var/lib/docker --rm martin/docker-cleanup-volumes [--dry-run]
#
FROM alpine:3.2
FROM alpine:3.3

MAINTAINER Martin van Beurden <chadoe@gmail.com>

ENV DOCKER_VERSION=1.4.1

#Install an up to date version of docker
RUN apk add --update-cache curl bash grep && \
RUN apk add --no-cache curl bash grep && \
# the docker package in alpine disables aufs and devicemapper
curl -sSL https://get.docker.com/builds/Linux/x86_64/docker-$DOCKER_VERSION -o /usr/bin/docker && \
chmod +x /usr/bin/docker && \
#cleanup
apk del curl && rm -rf /var/cache/apk/*
apk del curl

#Add the cleanup script
COPY ./docker-cleanup-volumes.sh /usr/local/bin/
Expand Down

0 comments on commit 313acbd

Please sign in to comment.