Skip to content

Commit bcd37a6

Browse files
committed
escaping brackets for generating the onnxruntime dockerfile
1 parent 7ace38e commit bcd37a6

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

tools/gen_ort_dockerfile.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -194,14 +194,14 @@ def dockerfile_for_linux(output_file):
194194
df += """
195195
# Step 1: Download and install core components
196196
# Ref: https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-linux.html#step-1-download-and-install-the-openvino-core-components
197-
RUN curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/${OPENVINO_SHORT_VERSION}/linux/{} --output openvino_${ONNXRUNTIME_OPENVINO_VERSION}.tgz && \
198-
tar -xf openvino_${ONNXRUNTIME_OPENVINO_VERSION}.tgz && \
199-
mkdir -p ${INTEL_OPENVINO_DIR} && \
200-
mv {}/* ${INTEL_OPENVINO_DIR} && \
201-
rm openvino_${ONNXRUNTIME_OPENVINO_VERSION}.tgz && \
202-
(cd ${INTEL_OPENVINO_DIR}/install_dependencies && \
197+
RUN curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/${{OPENVINO_SHORT_VERSION}}/linux/{} --output openvino_${{ONNXRUNTIME_OPENVINO_VERSION}}.tgz && \
198+
tar -xf openvino_${{ONNXRUNTIME_OPENVINO_VERSION}}.tgz && \
199+
mkdir -p ${{INTEL_OPENVINO_DIR}} && \
200+
mv {}/* ${{INTEL_OPENVINO_DIR}} && \
201+
rm openvino_${{ONNXRUNTIME_OPENVINO_VERSION}}.tgz && \
202+
(cd ${{INTEL_OPENVINO_DIR}}/install_dependencies && \
203203
./install_openvino_dependencies.sh -y) && \
204-
ln -s ${INTEL_OPENVINO_DIR} ${INTEL_OPENVINO_DIR}/../openvino_`echo ${ONNXRUNTIME_OPENVINO_VERSION} | awk '{print substr($0,0,4)}'`
204+
ln -s ${{INTEL_OPENVINO_DIR}} ${{INTEL_OPENVINO_DIR}}/../openvino_`echo ${{ONNXRUNTIME_OPENVINO_VERSION}} | awk '{{print substr($0,0,4)}}'`
205205
206206
# Step 2: Configure the environment
207207
# Ref: https://docs.openvino.ai/2024/get-started/install-openvino/install-openvino-archive-linux.html#step-2-configure-the-environment

0 commit comments

Comments
 (0)