Skip to content

Commit 47d222b

Browse files
committed
python3.6 added
1 parent 23e4407 commit 47d222b

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

opt/build/onnxruntime/Dockerfile.x64

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,18 @@ ARG ONNXRUNTIME_VER=1.7.1
1010
ARG ARCH=x64
1111

1212
RUN apt-get -qq update
13-
RUN apt-get -qq install -y curl wget tar git \
13+
RUN apt-get install -y software-properties-common
14+
RUN add-apt-repository ppa:deadsnakes/ppa
15+
RUN apt-get -qq update
16+
17+
RUN apt-get -qq install -y python3.6 curl wget tar git \
1418
build-essential cmake \
1519
libcurl4-openssl-dev libssl-dev libatlas-base-dev zlib1g-dev \
1620
python3 python3-pip python3-dev python3-numpy
21+
22+
RUN rm /usr/bin/python3
23+
RUN ln -s /usr/bin/python3.6 /usr/bin/python3
24+
1725
RUN pip3 install --upgrade pip setuptools wheel
1826

1927
ENV LANG=en_US.UTF-8

opt/build/onnxruntime/Dockerfile.x64-gpu

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,17 @@ ARG ARCH=x64-gpu
1010
RUN apt-get -qq update
1111
RUN apt-get install -y software-properties-common
1212
RUN add-apt-repository ppa:deadsnakes/ppa
13+
RUN apt-get -qq update
1314

14-
RUN apt-get install -y python3.6
15-
RUN apt-get -qq install -y curl \
15+
RUN apt-get -qq install -y python3.6 curl \
1616
wget tar git build-essential \
1717
libcurl4-openssl-dev libssl-dev \
1818
libatlas-base-dev zlib1g-dev python3 python3-pip \
1919
python3-dev python3-numpy rsync
2020

21+
RUN rm /usr/bin/python3
22+
RUN ln -s /usr/bin/python3.6 /usr/bin/python3
23+
2124
RUN pip3 install --upgrade pip setuptools wheel
2225

2326
RUN wget -q https://github.com/Kitware/CMake/releases/download/v3.19.5/cmake-3.19.5-Linux-x86_64.tar.gz -O /tmp/cmake.tgz

0 commit comments

Comments
 (0)