Skip to content

[Build] dockerfile build fails #17781

Description

@jozefchutka

Describe the issue

Using provided dockerfile fails at build

=> [stage-0 2/5] ADD . /code                                                                                                                                                                   3.6s
 => [stage-0 3/5] RUN tdnf install -y tar ca-certificates build-essential python3-numpy cmake python3-setuptools python3-wheel python3-pip curl python3-devel                                 338.6s
 => [stage-0 4/5] RUN /code/dockerfiles/scripts/install_cmake.sh                                                                                                                               22.6s
 => ERROR [stage-0 5/5] RUN cd /code && python3 -m pip install -r tools/ci_build/github/linux/docker/inference/x64/python/cpu/scripts/requirements.txt && /bin/bash ./build.sh --allow_running  1.2s
------
 > [stage-0 5/5] RUN cd /code && python3 -m pip install -r tools/ci_build/github/linux/docker/inference/x64/python/cpu/scripts/requirements.txt && /bin/bash ./build.sh --allow_running_as_root --skip_submodule_sync --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER):
1.072 Ignoring numpy: markers 'python_version >= "3.11"' don't match your environment
1.074 Collecting onnx
1.074   Cloning http://github.com/onnx/onnx.git (to revision fdefbe85ed9c362b95b9b401cd19db068a76141f) to /tmp/pip-install-cs9wk7tb/onnx_35a45618279e4ea19ec69f3ee606d39e
1.076   ERROR: Error [Errno 2] No such file or directory: 'git' while executing command git version
1.076 ERROR: Cannot find command 'git' - do you have 'git' installed and in your PATH?
1.197 WARNING: You are using pip version 22.0.4; however, version 23.2.1 is available.
1.197 You should consider upgrading via the '/usr/bin/python3 -m pip install --upgrade pip' command.
------
Dockerfile.source:15
--------------------
  13 |     
  14 |     # Prepare onnxruntime repository & build onnxruntime
  15 | >>> RUN cd /code && python3 -m pip install -r tools/ci_build/github/linux/docker/inference/x64/python/cpu/scripts/requirements.txt && /bin/bash ./build.sh --allow_running_as_root --skip_submodule_sync --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER)
  16 |     
  17 |     FROM mcr.microsoft.com/cbl-mariner/base/python:3
--------------------
ERROR: failed to solve: process "/bin/sh -c cd /code && python3 -m pip install -r tools/ci_build/github/linux/docker/inference/x64/python/cpu/scripts/requirements.txt && /bin/bash ./build.sh --allow_running_as_root --skip_submodule_sync --config Release --build_wheel --update --build --parallel --cmake_extra_defines ONNXRUNTIME_VERSION=$(cat ./VERSION_NUMBER)" did not complete successfully: exit code: 1

Urgency

No response

Target platform

docker

Build script

cd onnxruntime/dockerfiles
docker build -t onnxruntime-source -f Dockerfile.source ..

Error / output

=> ERROR [stage-0 5/5] RUN cd /code && python3 -m pip install -r tools/ci_build/github/linux/docker/inference/x64/python/cpu/scripts/requirements.txt && /bin/bash ./build.sh --allow_running  1.2s

Visual Studio Version

No response

GCC / Compiler Version

No response

Metadata

Metadata

Assignees

Labels

buildbuild issues; typically submitted using template

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions