Skip to content

Commit a4109ad

Browse files
committed
Dockerfile: limit make parallelism
Build time improves if the number of compilation procesess aren't unlimited, so put an upper limit of the number of cores on the build machine.
1 parent f26f05b commit a4109ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ COPY --chown=docker:docker . .
4545
RUN echo "building FORCE" && \
4646
./debug.sh $debug && \
4747
sed -i "/^INSTALLDIR=/cINSTALLDIR=$INSTALL_DIR/" Makefile && \
48-
make -j && \
48+
make -j$(nproc) && \
4949
make install && \
5050
make clean && \
5151
cd $HOME && \

0 commit comments

Comments
 (0)