Skip to content

Commit e80256a

Browse files
committed
feat: add support for Chinese locale in Docker setup
1 parent b6e14a1 commit e80256a

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

docker/base-image/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ ENV NODE_PATH=/usr/lib/node_modules
1717
# Timezone environment
1818
ENV TZ=Asia/Shanghai
1919

20-
# language environment
20+
# language environment - support both C.UTF-8 (default) and zh_CN.UTF-8 (Chinese)
2121
ENV LC_ALL=C.UTF-8
2222
ENV LANG=C.UTF-8
23+
ENV LC_CTYPE=zh_CN.UTF-8
2324

2425
# frontend port
2526
EXPOSE 8080

docker/base-image/install/deps/deps.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,12 @@ apt-get install -y \
2222
net-tools \
2323
fonts-wqy-zenhei \
2424
fonts-noto-cjk \
25-
fontconfig
25+
fontconfig \
26+
locales
27+
28+
# Generate Chinese locale
29+
locale-gen zh_CN.UTF-8
30+
update-locale
2631

2732
# Add source /etc/profile to ~/.bashrc
2833
echo "source /etc/profile" >> ~/.bashrc

0 commit comments

Comments
 (0)