feat: add support for Chinese locale in Docker setup

This commit is contained in:
Marvin Zhang
2025-09-17 16:00:27 +08:00
parent b6e14a13fe
commit e80256aa61
2 changed files with 8 additions and 2 deletions

View File

@@ -17,9 +17,10 @@ ENV NODE_PATH=/usr/lib/node_modules
# Timezone environment
ENV TZ=Asia/Shanghai
# language environment
# language environment - support both C.UTF-8 (default) and zh_CN.UTF-8 (Chinese)
ENV LC_ALL=C.UTF-8
ENV LANG=C.UTF-8
ENV LC_CTYPE=zh_CN.UTF-8
# frontend port
EXPOSE 8080

View File

@@ -22,7 +22,12 @@ apt-get install -y \
net-tools \
fonts-wqy-zenhei \
fonts-noto-cjk \
fontconfig
fontconfig \
locales
# Generate Chinese locale
locale-gen zh_CN.UTF-8
update-locale
# Add source /etc/profile to ~/.bashrc
echo "source /etc/profile" >> ~/.bashrc