diff options
| author | Riccardo Spagni <ric@spagni.net> | 2017-03-10 14:28:25 +0000 |
|---|---|---|
| committer | Riccardo Spagni <ric@spagni.net> | 2017-03-10 14:28:26 +0000 |
| commit | 1dfed893e062abfa4a916e8e33bd915aef90aaae (patch) | |
| tree | 3c96644bc4f3b17c9e5cc935937d504018f230df | |
| parent | a68496deecc49543debdd66da15ccef04cad5b9e (diff) | |
| parent | efc4c7b09fdcbf06e6dc4c12c91ad7b5d62c4389 (diff) | |
| download | monzero-core-1dfed893e062abfa4a916e8e33bd915aef90aaae.tar.gz monzero-core-1dfed893e062abfa4a916e8e33bd915aef90aaae.tar.xz monzero-core-1dfed893e062abfa4a916e8e33bd915aef90aaae.zip | |
Merge pull request #1857
efc4c7b0 Separated dependency installation, git clone and build commands to reduce repeated work on failure (adot23)
| -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 |
