Closed foxnight2 closed 1 year ago
Can you check the instruction here?
https://github.com/xmba15/onnx_runtime_cpp/issues/34
Can you also share docker version if you still can't build after reading the above instruction?
It doesn't help for me.
I fail with the step docker build -f ./dockerfiles/ubuntu2004.dockerfile -t onnx_runtime .
and the step is the first on #34
docker version
Client:
Cloud integration: v1.0.35-desktop+001
Version: 24.0.5
API version: 1.43
Go version: go1.20.6
Git commit: ced0996
Built: Fri Jul 21 20:36:24 2023
OS/Arch: windows/amd64
Context: default
Server: Docker Desktop 4.22.1 (118664)
Engine:
Version: 24.0.5
API version: 1.43 (minimum version 1.12)
Go version: go1.20.6
Git commit: a61e2b4
Built: Fri Jul 21 20:35:45 2023
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.6.21
GitCommit: 3dce8eb055cbb6872793272b4f20ed16117344f8
runc:
Version: 1.1.7
GitCommit: v1.1.7-0-g860f061
docker-init:
Version: 0.19.0
GitCommit: de40ad0
It's difficult to suggest in this case. Because the above error log does not specify where the build failed.
Two guesses you can try here:
Change the following line in the dockerfile
FROM ubuntu:20.04
to
FROM --platform=linux/amd64 ubuntu:20.04
or
FROM --platform=linux/x86_64 ubuntu:20.04
RUN apt-get update && \
apt-get install -y --no-install-recommends \
sudo \
gnupg2 \
lsb-release \
build-essential \
software-properties-common \
cmake \
git \
tmux && \
bash install_latest_cmake.bash && \
bash install_onnx_runtime.bash && \
bash install_apps_dependencies.bash && \
rm -rf /build && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*