Skip to content

Commit ccf540c

Browse files
committed
Update Dockerfile
1 parent e4c1717 commit ccf540c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tools/gen_ort_dockerfile.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,10 +367,8 @@ def dockerfile_for_linux(output_file):
367367
# Copy all artifacts needed by the backend to /opt/onnxruntime
368368
#
369369
WORKDIR /opt/onnxruntime
370-
371-
RUN mkdir -p /opt/onnxruntime && \
372-
cp /workspace/onnxruntime/LICENSE /opt/onnxruntime && \
373-
cat /workspace/onnxruntime/cmake/external/onnx/VERSION_NUMBER > /opt/onnxruntime/ort_onnx_version.txt
370+
RUN cp /workspace/onnxruntime/LICENSE . \\
371+
&& cat /workspace/onnxruntime/cmake/external/onnx/VERSION_NUMBER > ort_onnx_version.txt
374372
375373
# ONNX Runtime headers, libraries and binaries
376374
WORKDIR /opt/onnxruntime/include

0 commit comments

Comments
 (0)