From 9b81da1b2db42a9a64e66fb94c326258e4af80d2 Mon Sep 17 00:00:00 2001 From: Matt McCormick Date: Mon, 4 May 2015 16:23:12 -0400 Subject: [PATCH] Use nproc to get the number of processors on the build host. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 082e9d9..b747ab4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,7 @@ RUN git clone git://cmake.org/cmake.git CMake && \ RUN mkdir CMake-build WORKDIR /usr/src/CMake-build RUN /usr/src/CMake/bootstrap \ - --parallel=$(ls /sys/bus/cpu/devices | wc -w) \ + --parallel=$(nproc) \ --prefix=/usr && \ - make -j$(ls /sys/bus/cpu/devices | wc -w) install && \ + make -j$(nproc) install && \ rm -rf *