Skip to content

Commit 3a08b08

Browse files
committed
Set locale to en_US.UTF-8 (#784)
(cherry picked from commit 21bd763)
1 parent 7689fae commit 3a08b08

File tree

5 files changed

+22
-5
lines changed

5 files changed

+22
-5
lines changed

images/onnx-serve-gpu/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ RUN apt-get update -qq && apt-get install -y -q \
1717
libsm6 \
1818
libxext6 \
1919
libxrender-dev \
20+
locales \
2021
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
2122
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
2223
python3.6 get-pip.py && \
2324
pip install --upgrade pip && \
2425
rm -rf /root/.cache/pip*
2526

27+
RUN locale-gen en_US.UTF-8
28+
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.en LC_ALL=en_US.UTF-8
29+
2630
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"
2731

2832
COPY pkg/workloads/cortex/lib/requirements.txt /src/cortex/lib/requirements.txt

images/onnx-serve/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ RUN apt-get update -qq && apt-get install -y -q \
1717
libsm6 \
1818
libxext6 \
1919
libxrender-dev \
20+
locales \
2021
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
2122
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
2223
python3.6 get-pip.py && \
2324
pip install --upgrade pip && \
2425
rm -rf /root/.cache/pip*
2526

27+
RUN locale-gen en_US.UTF-8
28+
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.en LC_ALL=en_US.UTF-8
29+
2630
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"
2731

2832
COPY pkg/workloads/cortex/lib/requirements.txt /src/cortex/lib/requirements.txt

images/python-serve-gpu/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ RUN apt-get update -qq && apt-get install -y -q \
1717
libsm6 \
1818
libxext6 \
1919
libxrender-dev \
20+
locales \
2021
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
2122
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
2223
python3.6 get-pip.py && \
2324
pip install --upgrade pip && \
2425
rm -rf /root/.cache/pip*
2526

27+
RUN locale-gen en_US.UTF-8
28+
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.en LC_ALL=en_US.UTF-8
29+
2630
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"
2731

2832
COPY pkg/workloads/cortex/lib/requirements.txt /src/cortex/lib/requirements.txt

images/python-serve/Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,16 @@ RUN apt-get update -qq && apt-get install -y -q \
1717
libsm6 \
1818
libxext6 \
1919
libxrender-dev \
20+
locales \
2021
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/* && \
2122
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py && \
2223
python3.6 get-pip.py && \
2324
pip install --upgrade pip && \
2425
rm -rf /root/.cache/pip*
2526

27+
RUN locale-gen en_US.UTF-8
28+
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.en LC_ALL=en_US.UTF-8
29+
2630
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"
2731

2832
COPY pkg/workloads/cortex/lib/requirements.txt /src/cortex/lib/requirements.txt

images/tf-api/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
FROM tensorflow/tensorflow:2.0.0-py3
22

3-
RUN apt-get update -qq && apt-get install -y -q \
4-
zlib1g-dev \
5-
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/*
6-
7-
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"
83
RUN apt-get update -qq && apt-get install -y -q \
94
build-essential \
105
libfreetype6-dev \
@@ -17,8 +12,14 @@ RUN apt-get update -qq && apt-get install -y -q \
1712
libsm6 \
1813
libxext6 \
1914
libxrender-dev \
15+
locales \
2016
&& apt-get clean -qq && rm -rf /var/lib/apt/lists/*
2117

18+
RUN locale-gen en_US.UTF-8
19+
ENV LANG=en_US.UTF-8 LANGUAGE=en_US.en LC_ALL=en_US.UTF-8
20+
21+
ENV PYTHONPATH "${PYTHONPATH}:/src:/mnt/project"
22+
2223
COPY pkg/workloads/cortex/lib/requirements.txt /src/cortex/lib/requirements.txt
2324
COPY pkg/workloads/cortex/serve/tf.requirements.txt /src/cortex/serve/requirements.txt
2425
RUN pip install --upgrade pip && \

0 commit comments

Comments
 (0)