@@ -393,7 +393,7 @@ RUN python3 -m pip install -U \
393393RUN apt-get install yasm && wget https://ffmpeg.org/releases/ffmpeg-4.4.2.tar.bz2 && tar xjvf ffmpeg-4.4.2.tar.bz2 && cd ffmpeg-4.4.2 && \
394394 ./configure --prefix=/usr --toolchain=hardened --enable-shared \
395395 --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --arch=arm64 \
396- --disable-stripping && make -j 4 && make install
396+ --disable-stripping && make -j"$(nproc)" && make install
397397
398398# --------------------------------------------------------------------------------------------------
399399
@@ -424,7 +424,7 @@ ENV LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:/opt/tritonserver/lib"
424424RUN apt-get install -y yasm && wget https://ffmpeg.org/releases/ffmpeg-4.4.2.tar.bz2 && tar xjvf ffmpeg-4.4.2.tar.bz2 && cd ffmpeg-4.4.2 && \
425425 ./configure --prefix=/usr --toolchain=hardened --enable-shared \
426426 --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 \
427- --disable-stripping && make -j 4 && make install
427+ --disable-stripping && make -j"$(nproc)" && make install
428428
429429# Install yq
430430RUN wget -nv https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64 -O /usr/local/bin/yq \
@@ -441,7 +441,7 @@ RUN git clone https://github.com/ceres-solver/ceres-solver.git && \
441441 mkdir build && \
442442 cd build && \
443443 cmake .. -DBUILD_TESTING=OFF -DBUILD_EXAMPLES=OFF -DBUILD_BENCHMARKS=OFF -DUSE_CUDA=ON -Dcudss_DIR=$CUDSS_DIR && \
444- make -j 4 && \
444+ make -j"$(nproc)" && \
445445 make install && \
446446 sed -i 's/find_dependency(cudss 0.3.0)/find_dependency(cudss)/' /usr/local/lib/cmake/Ceres/CeresConfig.cmake
447447
@@ -450,15 +450,14 @@ RUN git clone https://github.com/ceres-solver/ceres-solver.git && \
450450RUN git clone https://github.com/protocolbuffers/protobuf.git -b v5.26.0 && \
451451 cd protobuf && \
452452 git submodule update --init --recursive && \
453- mkdir build && \
454- cd build && \
453+ mkdir build && cd build && \
455454 cmake .. \
456- -Dprotobuf_BUILD_TESTS=OFF \
457- -Dprotobuf_MSVC_STATIC_RUNTIME=OFF \
458- -DABSL_PROPAGATE_CXX_STD=ON \
459- -Dprotobuf_BUILD_SHARED_LIBS=ON \
460- -DCMAKE_POSITION_INDEPENDENT_CODE=ON && \
461- cmake --build . --config Release && \
455+ -Dprotobuf_BUILD_TESTS=OFF \
456+ -Dprotobuf_MSVC_STATIC_RUNTIME=OFF \
457+ -DABSL_PROPAGATE_CXX_STD=ON \
458+ -Dprotobuf_BUILD_SHARED_LIBS=ON \
459+ -DCMAKE_POSITION_INDEPENDENT_CODE=ON && \
460+ make -j"$(nproc)" && \
462461 make install
463462
464463# Specify non-root admin user for container
0 commit comments