mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-08-15 01:03:23 +00:00
Dockerfile: add option to set build parallelism
This commit is contained in:
parent
f51bac990e
commit
37f9c6e651
2 changed files with 7 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue