Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions runtimes/onnx-runtime/development/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ FROM ubuntu:18.04
# Disable interactive installation mode
ENV DEBIAN_FRONTEND=noninteractive

# Install Python dependencies
# Install Python and locales dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-dev \
python3-pip && \
python3-pip \
locales && \
apt-get clean autoclean && apt-get autoremove -y

RUN pip3 install --upgrade pip setuptools wheel
Expand All @@ -22,6 +23,9 @@ RUN pip3 install --no-cache-dir -r /root/setup/requirements_report.txt
############## ONNX Backend dependencies ###########
ENV ONNX_BACKEND="onnxruntime.backend.backend"

# Set locale which is required for StringNormalizer
RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8

# Install dependencies
RUN pip3 install onnx
RUN pip3 install -i https://test.pypi.org/simple/ ort-nightly
Expand Down
8 changes: 6 additions & 2 deletions runtimes/onnx-runtime/stable/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ FROM ubuntu:18.04
# Disable interactive installation mode
ENV DEBIAN_FRONTEND=noninteractive

# Install Python dependencies
# Install Python and locales dependencies
RUN apt-get update && apt-get install -y \
python3 \
python3-dev \
python3-pip && \
python3-pip \
locales && \
apt-get clean autoclean && apt-get autoremove -y

RUN pip3 install --upgrade pip setuptools wheel
Expand All @@ -22,6 +23,9 @@ RUN pip3 install --no-cache-dir -r /root/setup/requirements_report.txt
############## ONNX Backend dependencies ###########
ENV ONNX_BACKEND="onnxruntime.backend.backend"

# Set locale which is required for StringNormalizer
RUN locale-gen en_US.UTF-8 && update-locale LANG=en_US.UTF-8

# Install dependencies
RUN pip3 install onnx
RUN pip3 install onnxruntime
Expand Down