diff --git a/dockerfiles/Dockerfile.server b/dockerfiles/Dockerfile.server index 5eb39088c4..71e5ecf8c0 100644 --- a/dockerfiles/Dockerfile.server +++ b/dockerfiles/Dockerfile.server @@ -28,7 +28,7 @@ ENV PATH="/usr/local/go/bin:${PATH}" WORKDIR / RUN mkdir -p /onnxruntime/build && \ - python3 /onnxruntime/tools/ci_build/build.py --build_dir /onnxruntime/build --config Release --build_server --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) + python3 /onnxruntime/tools/ci_build/build.py --build_dir /onnxruntime/build --config Release --build_server --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) FROM minimal AS final WORKDIR /onnxruntime/server/ diff --git a/dockerfiles/Dockerfile.source b/dockerfiles/Dockerfile.source index 170cc1eb92..803bb1870c 100644 --- a/dockerfiles/Dockerfile.source +++ b/dockerfiles/Dockerfile.source @@ -22,7 +22,7 @@ RUN git clone --single-branch --branch ${ONNXRUNTIME_SERVER_BRANCH} --recursive /bin/sh onnxruntime/dockerfiles/scripts/install_common_deps.sh RUN cd onnxruntime &&\ - /bin/sh ./build.sh --config Release --build_wheel --update --build --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\ + /bin/sh ./build.sh --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER) &&\ pip install /code/onnxruntime/build/Linux/Release/dist/*.whl &&\ cd .. &&\ rm -rf onnxruntime cmake-3.14.3-Linux-x86_64