Skip to content

Commit e9bd2d5

Browse files
authored
manylinux: Update build configuration (#325)
* dockerfile: Update ONNX Runtime Dockerfile instructions. * Set specific CMake version * Install cmake using pipx
1 parent adb5238 commit e9bd2d5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tools/gen_ort_dockerfile.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def dockerfile_for_linux(output_file):
134134
ENV PYTHON_BIN_PATH=${PYBIN}/python${PYVER} \
135135
PATH=${PYBIN}:${PATH}
136136
137-
RUN yum install -y \\
137+
RUN dnf install -y \\
138138
ca-certificates \\
139139
curl \\
140140
git \\
@@ -145,7 +145,9 @@ def dockerfile_for_linux(output_file):
145145
wget \\
146146
zip
147147
148-
RUN pip3 install patchelf==0.17.2 numpy
148+
RUN pipx install cmake==4.0.3 --force
149+
150+
RUN pip3 install patchelf==0.17.2 numpy>=2.0.0
149151
"""
150152
else:
151153
if os.getenv("CCACHE_REMOTE_ONLY") and os.getenv("CCACHE_REMOTE_STORAGE"):

0 commit comments

Comments
 (0)