Reorder operations in Dockerfile, to make image creation faster
- Reorder prevents unnecessary building of Boost libraries
This commit is contained in:
parent
8aeeed6291
commit
973cf8b49d
1 changed files with 4 additions and 4 deletions
|
|
@ -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 && \
|
||||
|
|
|
|||
Loading…
Reference in a new issue