From 418a7ba4abab94dd1ead2d4316a58de99df1d159 Mon Sep 17 00:00:00 2001 From: Justin Cormack Date: Mon, 25 Apr 2016 10:59:36 +0100 Subject: [PATCH] clean up apk cache after install to make image a little smaller Signed-off-by: Justin Cormack --- alpine/Dockerfile | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 810264511..89e997106 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -8,16 +8,24 @@ RUN \ passwd -d root && \ apk update && apk upgrade && \ apk add \ - e2fsprogs chrony \ - git xz iptables \ - sfdisk lvm2 syslinux \ - openrc busybox-initscripts \ + e2fsprogs \ + chrony \ + git \ + xz \ + iptables \ + sfdisk \ + lvm2 \ + syslinux \ + openrc \ + busybox-initscripts \ alpine-conf \ bind-tools \ openssh-client \ - strace fuse \ + strace \ + fuse \ util-linux \ - cifs-utils + cifs-utils \ + && rm -rf /var/cache/apk/* COPY etc /etc/ RUN mkdir -p /etc/docker