Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 7967b01

Browse files
author
Yasser Elsayed
authored
Switch to UTF-8 filesystem encoding (#1346)
1 parent d8369d7 commit 7967b01

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

containers/base/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,13 @@ RUN echo "deb-src http://ftp.us.debian.org/debian testing main" >> /etc/apt/sour
105105
tools/google-cloud-sdk/bin/gcloud config set component_manager/disable_update_check true && \
106106
touch /tools/google-cloud-sdk/lib/third_party/google.py && \
107107

108+
# locale
109+
DEBIAN_FRONTEND=noninteractive apt-get install -y locales && \
110+
sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
111+
echo 'LANG="en_US.UTF-8"'>/etc/default/locale && \
112+
dpkg-reconfigure --frontend=noninteractive locales && \
113+
update-locale LANG=en_US.UTF-8 && \
114+
108115
# Add some unchanging bits - specifically node modules (that need to be kept in sync
109116
# with packages.json manually, but help save build time, by preincluding them in an
110117
# earlier layer).
@@ -131,6 +138,8 @@ RUN echo "deb-src http://ftp.us.debian.org/debian testing main" >> /etc/apt/sour
131138
rm -rf /usr/share/i18n/locales/* && \
132139
cd /
133140

141+
ENV LANG en_US.UTF-8
142+
134143
# Install tf-transform
135144
RUN pip install -U --upgrade-strategy only-if-needed --no-cache-dir tensorflow-transform==0.1.7
136145

0 commit comments

Comments
 (0)