mirror of
https://github.com/monero-project/monero.git
synced 2026-04-28 11:53:17 -07:00
Dockerfile: add option to set build parallelism
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user