Skip to content

Commit

Permalink
Separated dependency installation, git clone and build commands to re…
Browse files Browse the repository at this point in the history
…duce repeated work on failure
  • Loading branch information
adot23 committed Mar 9, 2017
1 parent b67877a commit efc4c7b
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,13 @@ RUN set -x \
pkg-config \
' \
&& apt-get -qq update \
&& apt-get -qq --no-install-recommends install $buildDeps \
\
&& git clone https://github.com/monero-project/monero.git $SRC_DIR \
&& cd $SRC_DIR \
&& make -j$(nproc) release-static \
&& cp build/release/bin/* /usr/local/bin/ \
&& apt-get -qq --no-install-recommends install $buildDeps

RUN git clone https://github.com/monero-project/monero.git $SRC_DIR
WORKDIR $SRC_DIR
RUN make -j$(nproc) release-static

RUN cp build/release/bin/* /usr/local/bin/ \
\
&& rm -r $SRC_DIR \
&& apt-get -qq --auto-remove purge $buildDeps
Expand Down

0 comments on commit efc4c7b

Please sign in to comment.