mirror of
https://github.com/lesderid/image-archlinux
synced 2025-04-11 14:45:39 +02:00
Fixed cleanup and install order
This commit is contained in:
parent
1011c3daf5
commit
b62f0599e4
12
Dockerfile
12
Dockerfile
@ -68,23 +68,25 @@ RUN systemctl disable getty@tty1.service \
|
|||||||
&& systemctl enable ntpdate
|
&& systemctl enable ntpdate
|
||||||
|
|
||||||
|
|
||||||
|
# packages upgrade
|
||||||
|
RUN pacman --noconfirm -Suy
|
||||||
|
|
||||||
|
|
||||||
# Patch rootfs
|
# Patch rootfs
|
||||||
RUN wget -qO - http://j.mp/ocs-scripts | bash
|
RUN wget -qO - http://j.mp/ocs-scripts | bash
|
||||||
ADD ./patches/etc/ /etc/
|
ADD ./patches/etc/ /etc/
|
||||||
ADD ./patches/usr/ /usr/
|
ADD ./patches/usr/ /usr/
|
||||||
|
|
||||||
|
|
||||||
|
# Enable Online-Labs services
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
# packages upgrade
|
|
||||||
RUN pacman --noconfirm -Suy
|
|
||||||
|
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
RUN pacman -Rns linux-armv7 --noconfirm \
|
RUN pacman-db-upgrade \
|
||||||
|
&& pacman -Rns linux-armv7 --noconfirm \
|
||||||
&& pacman -Sc --noconfirm \
|
&& pacman -Sc --noconfirm \
|
||||||
&& rm -rf /var/cache/pacman/pkg \
|
&& rm -rf /var/cache/pacman/pkg \
|
||||||
&& localepurge-config && localepurge
|
&& localepurge-config && localepurge
|
||||||
|
Loading…
x
Reference in New Issue
Block a user