clean up apk cache after install to make image a little smaller

Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
Justin Cormack 2016-04-25 10:59:36 +01:00
parent da23023a92
commit 418a7ba4ab

View File

@ -8,16 +8,24 @@ RUN \
passwd -d root && \ passwd -d root && \
apk update && apk upgrade && \ apk update && apk upgrade && \
apk add \ apk add \
e2fsprogs chrony \ e2fsprogs \
git xz iptables \ chrony \
sfdisk lvm2 syslinux \ git \
openrc busybox-initscripts \ xz \
iptables \
sfdisk \
lvm2 \
syslinux \
openrc \
busybox-initscripts \
alpine-conf \ alpine-conf \
bind-tools \ bind-tools \
openssh-client \ openssh-client \
strace fuse \ strace \
fuse \
util-linux \ util-linux \
cifs-utils cifs-utils \
&& rm -rf /var/cache/apk/*
COPY etc /etc/ COPY etc /etc/
RUN mkdir -p /etc/docker RUN mkdir -p /etc/docker