Improved Docker cache by switching RUN order (#1)

This commit is contained in:
Manfred Touron 2015-01-30 13:49:31 +00:00
parent 671e2b6126
commit 21db560f3c
1 changed files with 10 additions and 10 deletions

View File

@ -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 \