Skip to content

Commit 96aa9ff

Browse files
committed
ORT 1.17.0 has dropped header dependency
1 parent 0825c35 commit 96aa9ff

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

tools/gen_ort_dockerfile.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,7 @@ def dockerfile_for_linux(output_file):
296296
if FLAGS.ort_tensorrt:
297297
df += """
298298
# TensorRT specific headers and libraries
299-
RUN cp /workspace/onnxruntime/include/onnxruntime/core/providers/tensorrt/tensorrt_provider_factory.h \
300-
/opt/onnxruntime/include && \
301-
cp /workspace/build/${ONNXRUNTIME_BUILD_CONFIG}/libonnxruntime_providers_tensorrt.so \
299+
RUN cp /workspace/build/${ONNXRUNTIME_BUILD_CONFIG}/libonnxruntime_providers_tensorrt.so \
302300
/opt/onnxruntime/lib
303301
"""
304302

@@ -467,9 +465,6 @@ def dockerfile_for_windows(output_file):
467465
if FLAGS.ort_tensorrt:
468466
df += """
469467
# TensorRT specific headers and libraries
470-
WORKDIR /opt/onnxruntime/include
471-
RUN copy \\workspace\\onnxruntime\\include\\onnxruntime\\core\\providers\\tensorrt\\tensorrt_provider_factory.h \\opt\\onnxruntime\\include
472-
473468
WORKDIR /opt/onnxruntime/lib
474469
RUN copy \\workspace\\build\\Release\\Release\\onnxruntime_providers_tensorrt.dll \\opt\\onnxruntime\\bin
475470

0 commit comments

Comments
 (0)