Reorder Dockerfile to make caching more efficient
This commit is contained in:
parent
59c7261547
commit
3bdc42204a
@ -1,7 +1,5 @@
|
|||||||
FROM debian:unstable
|
FROM debian:unstable
|
||||||
|
|
||||||
COPY . /
|
|
||||||
|
|
||||||
RUN export DEBIAN_FRONTEND=noninteractive &&\
|
RUN export DEBIAN_FRONTEND=noninteractive &&\
|
||||||
apt-get update &&\
|
apt-get update &&\
|
||||||
apt-get install -y locales
|
apt-get install -y locales
|
||||||
@ -21,6 +19,8 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\
|
|||||||
rm -rf /var/lib/apt/lists/* &&\
|
rm -rf /var/lib/apt/lists/* &&\
|
||||||
ln -sf /bin/bash /bin/sh
|
ln -sf /bin/bash /bin/sh
|
||||||
|
|
||||||
|
COPY . /
|
||||||
|
|
||||||
RUN cd /root &&\
|
RUN cd /root &&\
|
||||||
git clone https://git.strongds.hu/mrtoth/zshrc.git &&\
|
git clone https://git.strongds.hu/mrtoth/zshrc.git &&\
|
||||||
echo "/root/.oh-my-zsh" > zshrc/oh-my-zsh_path &&\
|
echo "/root/.oh-my-zsh" > zshrc/oh-my-zsh_path &&\
|
||||||
|
Loading…
Reference in New Issue
Block a user