mirror of
https://github.com/crawlab-team/crawlab.git
synced 2026-01-21 17:21:09 +01:00
feat: add support for Chinese locale in Docker setup
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user