Clean up apk cache in init

See #1312

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack
2017-03-16 19:14:08 +00:00
parent 657c97c4fb
commit 05123a7afa
5 changed files with 8 additions and 7 deletions

View File

@@ -1,11 +1,12 @@
FROM alpine:3.5
RUN \
apk update && apk upgrade -a && \
apk add --no-cache \
apk --no-cache update && \
apk --no-cache upgrade -a && \
apk --no-cache add \
dhcpcd \
e2fsprogs \
e2fsprogs-extra \
&& true
&& rm -rf /var/cache/apk/*
COPY . ./