aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-10 14:28:25 +0000
committerRiccardo Spagni <ric@spagni.net>2017-03-10 14:28:26 +0000
commit1dfed893e062abfa4a916e8e33bd915aef90aaae (patch)
tree3c96644bc4f3b17c9e5cc935937d504018f230df
parentMerge pull request #1856 (diff)
parentSeparated dependency installation, git clone and build commands to reduce rep... (diff)
downloadmonero-1dfed893e062abfa4a916e8e33bd915aef90aaae.tar.xz
Merge pull request #1857
efc4c7b0 Separated dependency installation, git clone and build commands to reduce repeated work on failure (adot23)
-rw-r--r--Dockerfile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Dockerfile b/Dockerfile
index 38d7b96d9..297789a8d 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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