diff options
author | MoroccanMalinois <MoroccanMalinois@protonmail.com> | 2017-12-11 23:33:08 +0000 |
---|---|---|
committer | MoroccanMalinois <MoroccanMalinois@protonmail.com> | 2017-12-11 23:33:08 +0000 |
commit | 37f9c6e6510a6cde583d7bf1530c1d7d87b3c8ab (patch) | |
tree | d5309e6bed8780d65524b51fc22c6d0bf35cf31e /Dockerfile | |
parent | Merge pull request #2906 (diff) | |
download | monero-37f9c6e6510a6cde583d7bf1530c1d7d87b3c8ab.tar.xz |
Dockerfile: add option to set build parallelism
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile index 71b0658a0..a62e263cb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,8 +21,10 @@ RUN apt-get update && \ WORKDIR /src COPY . . + +ARG NPROC RUN rm -rf build && \ - make -j$(nproc) release-static + if [ -z "$NPROC" ];then make -j$(nproc) release-static;else make -j$NPROC release-static;fi # runtime stage FROM ubuntu:16.04 |