diff --git a/tools/gen_ort_dockerfile.py b/tools/gen_ort_dockerfile.py index 160c4ff..33845cb 100755 --- a/tools/gen_ort_dockerfile.py +++ b/tools/gen_ort_dockerfile.py @@ -275,8 +275,10 @@ def dockerfile_for_linux(output_file): ARG ONNXRUNTIME_REPO ARG ONNXRUNTIME_BUILD_CONFIG -RUN git clone -b rel-${ONNXRUNTIME_VERSION} --recursive ${ONNXRUNTIME_REPO} onnxruntime && \ - (cd onnxruntime && git submodule update --init --recursive) +# Cherry-pick commit: https://github.com/microsoft/onnxruntime/commit/9dad9af9f9b48c05814d0c2d067d0565e8da6ce8 +RUN git clone -b rel-${ONNXRUNTIME_VERSION} --recursive ${ONNXRUNTIME_REPO} onnxruntime \\ + && cd onnxruntime \\ + && git cherry-pick -n 9dad9af9f9b48c05814d0c2d067d0565e8da6ce8 """ if FLAGS.onnx_tensorrt_tag != "":