From f94c1eec2548104c03a5244440a527a90f0487a0 Mon Sep 17 00:00:00 2001 From: Manfred Touron Date: Fri, 30 Jan 2015 14:57:30 +0000 Subject: [PATCH] Moved cleanup after the final package upgrade --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index f218573..e973033 100644 --- a/Dockerfile +++ b/Dockerfile @@ -74,13 +74,6 @@ ADD ./patches/etc/ /etc/ ADD ./patches/usr/ /usr/ -# Cleanup -RUN pacman -Rns linux-armv7 --noconfirm \ - && pacman -Sc --noconfirm \ - && rm -rf /var/cache/pacman/pkg \ - && localepurge-config && localepurge - - RUN systemctl enable oc-ssh-keys \ && systemctl enable oc-add-extra-volumes \ && systemctl enable oc-sync-kernel-modules @@ -88,3 +81,10 @@ RUN systemctl enable oc-ssh-keys \ # packages upgrade RUN pacman --noconfirm -Suy + + +# Cleanup +RUN pacman -Rns linux-armv7 --noconfirm \ + && pacman -Sc --noconfirm \ + && rm -rf /var/cache/pacman/pkg \ + && localepurge-config && localepurge