From a4109adf11885bf9edb8c9c1b58d38c784276a77 Mon Sep 17 00:00:00 2001 From: "Peter A. Jonsson" Date: Mon, 2 Dec 2024 16:48:14 +0100 Subject: [PATCH] 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. --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2338d49c..eb656677 100755 --- a/Dockerfile +++ b/Dockerfile @@ -45,7 +45,7 @@ COPY --chown=docker:docker . . RUN echo "building FORCE" && \ ./debug.sh $debug && \ sed -i "/^INSTALLDIR=/cINSTALLDIR=$INSTALL_DIR/" Makefile && \ - make -j && \ + make -j$(nproc) && \ make install && \ make clean && \ cd $HOME && \