Improved Docker cache by switching RUN order (#1)
This commit is contained in:
parent
671e2b6126
commit
21db560f3c
20
Dockerfile
20
Dockerfile
|
@ -26,16 +26,6 @@ RUN pacman -Sy --noconfirm \
|
||||||
wget
|
wget
|
||||||
|
|
||||||
|
|
||||||
# Cleanup
|
|
||||||
RUN pacman -Rns linux-armv7 --noconfirm \
|
|
||||||
&& pacman -Sc --noconfirm
|
|
||||||
|
|
||||||
|
|
||||||
# Locales
|
|
||||||
RUN sed -e s/^\#en_US.UTF-8/en_US.UTF-8/ -i /etc/locale.gen \
|
|
||||||
&& locale-gen
|
|
||||||
|
|
||||||
|
|
||||||
# xnbd-client
|
# xnbd-client
|
||||||
RUN mkdir /tmp/build-xnbd \
|
RUN mkdir /tmp/build-xnbd \
|
||||||
&& cd /tmp/build-xnbd \
|
&& cd /tmp/build-xnbd \
|
||||||
|
@ -52,6 +42,16 @@ RUN mkdir /tmp/build-xnbd \
|
||||||
&& rm -rf /tmp/build-xnbd /tmp/xnbd.tar.bz2
|
&& rm -rf /tmp/build-xnbd /tmp/xnbd.tar.bz2
|
||||||
|
|
||||||
|
|
||||||
|
# Locales
|
||||||
|
RUN sed -e s/^\#en_US.UTF-8/en_US.UTF-8/ -i /etc/locale.gen \
|
||||||
|
&& locale-gen
|
||||||
|
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
RUN pacman -Rns linux-armv7 --noconfirm \
|
||||||
|
&& pacman -Sc --noconfirm
|
||||||
|
|
||||||
|
|
||||||
# Systemd
|
# Systemd
|
||||||
RUN systemctl disable getty@tty1.service \
|
RUN systemctl disable getty@tty1.service \
|
||||||
&& systemctl disable systemd-networkd.service \
|
&& systemctl disable systemd-networkd.service \
|
||||||
|
|
Loading…
Reference in New Issue