Reorder operations in Dockerfile, to make image creation faster
- Reorder prevents unnecessary building of Boost libraries
This commit is contained in:
parent
6595acb3f3
commit
194b0dbbc9
1 changed files with 3 additions and 4 deletions
|
|
@ -24,7 +24,6 @@ RUN \
|
||||||
libtool \
|
libtool \
|
||||||
locales \
|
locales \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
ntp \
|
|
||||||
wget \
|
wget \
|
||||||
&& \
|
&& \
|
||||||
apt-get clean && \
|
apt-get clean && \
|
||||||
|
|
@ -34,9 +33,6 @@ RUN \
|
||||||
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
|
||||||
locale-gen
|
locale-gen
|
||||||
|
|
||||||
ADD . /peerplays-core
|
|
||||||
WORKDIR /peerplays-core
|
|
||||||
|
|
||||||
# Compile Boost
|
# Compile Boost
|
||||||
RUN \
|
RUN \
|
||||||
BOOST_ROOT=$HOME/boost_1_67_0 && \
|
BOOST_ROOT=$HOME/boost_1_67_0 && \
|
||||||
|
|
@ -47,6 +43,9 @@ RUN \
|
||||||
./b2 install && \
|
./b2 install && \
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
|
ADD . /peerplays-core
|
||||||
|
WORKDIR /peerplays-core
|
||||||
|
|
||||||
# Compile Peerplays
|
# Compile Peerplays
|
||||||
RUN \
|
RUN \
|
||||||
BOOST_ROOT=$HOME/boost_1_67_0 && \
|
BOOST_ROOT=$HOME/boost_1_67_0 && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue