Reorder operations in Dockerfile, to make image creation faster

- Reorder prevents unnecessary building of Boost libraries
This commit is contained in:
Srdjan Obucina 2019-08-22 16:56:00 +02:00 committed by gladcow
parent 8aeeed6291
commit 973cf8b49d

View file

@ -37,10 +37,7 @@ RUN \
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ADD . /peerplays-core
WORKDIR /peerplays-core
# Compile Boost
# Compile Boost
RUN \
BOOST_ROOT=$HOME/boost_1_67_0 && \
wget -c 'http://sourceforge.net/projects/boost/files/boost/1.67.0/boost_1_67_0.tar.gz/download' -O boost_1_67_0.tar.gz &&\
@ -50,6 +47,9 @@ RUN \
./b2 install && \
cd ..
ADD . /peerplays-core
WORKDIR /peerplays-core
# Compile Peerplays
RUN \
BOOST_ROOT=$HOME/boost_1_67_0 && \