From 9b80a26396afa201f2515c76e0d63e04afea7db9 Mon Sep 17 00:00:00 2001 From: Book-fall2wish Date: Thu, 6 Jun 2024 14:12:45 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=AD=E6=96=87=E7=8E=AF?= =?UTF-8?q?=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9214318..0083382 100644 --- a/Dockerfile +++ b/Dockerfile @@ -32,7 +32,10 @@ RUN fc-cache -f # rm -f gf.tar.gz && \ # fc-cache -f && \ # rm -rf $PWD/fonts-main/ - +# 设定中文环境UTF8 +RUN bash -c 'echo -e "en_US.UTF-8 UTF-8\nzh_CN.UTF-8 UTF-8" >> /etc/locale.gen' && \ + locale-gen &&\ + sudo bash -c 'echo -e "LANG=zh_CN.UTF-8\nLC_ALL=zh_CN.UTF-8" > /etc/default/locale' # mcl # 将交互脚本复制到镜像中 COPY interact.sh /interact.sh