Skip to content

Commit c4d6b85

Browse files
yangawslaurenyu
authored andcommitted
Configure encoding to be utf-8 (#160)
1 parent f339949 commit c4d6b85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docker/1.12.0/Dockerfile.cpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ RUN if [ $py_version -eq 3 ]; then PYTHON_VERSION=python3.6; else PYTHON_VERSION
6262
ln -s -f /usr/bin/$PYTHON_VERSION /usr/bin/python && \
6363
rm -rf /var/lib/apt/lists/*
6464

65-
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
65+
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONIOENCODING=UTF-8 LANG=C.UTF-8 LC_ALL=C.UTF-8
6666

6767
RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
6868
python get-pip.py --disable-pip-version-check --no-cache-dir "pip==18.1" && \

docker/1.12.0/Dockerfile.gpu

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ RUN mkdir -p /root/.ssh/ && \
9696

9797
###########################################################################
9898
# Python won’t try to write .pyc or .pyo files on the import of source modules
99-
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1
99+
ENV PYTHONDONTWRITEBYTECODE=1 PYTHONUNBUFFERED=1 PYTHONIOENCODING=UTF-8 LANG=C.UTF-8 LC_ALL=C.UTF-8
100100

101101
RUN curl -fSsL -O https://bootstrap.pypa.io/get-pip.py && \
102102
python get-pip.py --disable-pip-version-check --no-cache-dir "pip==18.1" && \

0 commit comments

Comments
 (0)