Reorder Dockerfile to make caching more efficient

This commit is contained in:
Kristóf Tóth 2018-05-24 21:05:00 +02:00
parent 59c7261547
commit 3bdc42204a

View File

@ -1,7 +1,5 @@
FROM debian:unstable
COPY . /
RUN export DEBIAN_FRONTEND=noninteractive &&\
apt-get update &&\
apt-get install -y locales
@ -21,6 +19,8 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
rm -rf /var/lib/apt/lists/* &&\
ln -sf /bin/bash /bin/sh
COPY . /
RUN cd /root &&\
git clone https://git.strongds.hu/mrtoth/zshrc.git &&\
echo "/root/.oh-my-zsh" > zshrc/oh-my-zsh_path &&\