Skip to content

Commit

Permalink
improve dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
andife committed Jul 26, 2023
1 parent 9270f8e commit 7b0cb67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions runtimes/onnx-runtime/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive

# Install Python and locales dependencies
RUN apt-get update && apt-get install -y \
RUN apt-get update && apt-get install -y --no-install-recommends \
python3 \
python3-dev \
python3-pip \
Expand All @@ -27,10 +27,10 @@ ENV ONNX_BACKEND="onnxruntime.backend.backend"
RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8

# Install dependencies
RUN pip3 install onnx
# according to https://github.com/microsoft/onnxruntime/issues/15608
RUN pip3 install onnx protobuf==3.20.2 numpy==1.22.4 coloredlogs flatbuffers packaging sympy
RUN pip3 install ort-nightly --index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/ORT-Nightly/pypi/simple/
RUN pip3 install protobuf==3.20.2
RUN pip3 install numpy==1.22.4


####################################################

Expand Down

0 comments on commit 7b0cb67

Please sign in to comment.