Moved cleanup after the final package upgrade
This commit is contained in:
parent
5dfb1c118b
commit
f94c1eec25
14
Dockerfile
14
Dockerfile
|
@ -74,13 +74,6 @@ ADD ./patches/etc/ /etc/
|
||||||
ADD ./patches/usr/ /usr/
|
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 \
|
RUN systemctl enable oc-ssh-keys \
|
||||||
&& systemctl enable oc-add-extra-volumes \
|
&& systemctl enable oc-add-extra-volumes \
|
||||||
&& systemctl enable oc-sync-kernel-modules
|
&& systemctl enable oc-sync-kernel-modules
|
||||||
|
@ -88,3 +81,10 @@ RUN systemctl enable oc-ssh-keys \
|
||||||
|
|
||||||
# packages upgrade
|
# packages upgrade
|
||||||
RUN pacman --noconfirm -Suy
|
RUN pacman --noconfirm -Suy
|
||||||
|
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
RUN pacman -Rns linux-armv7 --noconfirm \
|
||||||
|
&& pacman -Sc --noconfirm \
|
||||||
|
&& rm -rf /var/cache/pacman/pkg \
|
||||||
|
&& localepurge-config && localepurge
|
||||||
|
|
Loading…
Reference in New Issue