diff options
author | adot23 <adot23@users.noreply.github.com> | 2017-03-09 16:03:28 +0000 |
---|---|---|
committer | adot23 <adot23@users.noreply.github.com> | 2017-03-09 16:03:28 +0000 |
commit | efc4c7b09fdcbf06e6dc4c12c91ad7b5d62c4389 (patch) | |
tree | a96573fb1787053f07c30f5d2b28d6e6353b92fe /Dockerfile | |
parent | Merge pull request #1852 (diff) | |
download | monero-efc4c7b09fdcbf06e6dc4c12c91ad7b5d62c4389.tar.xz |
Separated dependency installation, git clone and build commands to reduce repeated work on failure
Diffstat (limited to '')
-rw-r--r-- | Dockerfile | 13 |
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 |