From 7d594e62db1dcfe628eb4fdaaf330af135d9a2fe Mon Sep 17 00:00:00 2001 From: wancat Date: Fri, 25 Aug 2023 12:07:57 +0800 Subject: [PATCH] fix: set locale to zh_TW.UTF8 in quest image --- quests/helloworld/Dockerfile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/quests/helloworld/Dockerfile b/quests/helloworld/Dockerfile index ce97fea..10e45fa 100644 --- a/quests/helloworld/Dockerfile +++ b/quests/helloworld/Dockerfile @@ -1,10 +1,18 @@ FROM node:latest RUN apt-get update && apt-get install -y \ + locales \ curl \ vim \ - zsh \ - jq + zsh + +RUN sed -i -e 's/# zh_TW.UTF-8 UTF-8/zh_TW.UTF-8 UTF-8/' /etc/locale.gen && \ + dpkg-reconfigure --frontend=noninteractive locales && \ + update-locale LANG=zh_TW.UTF-8 + +ENV LANG zh_TW.UTF-8 +ENV LANGUAGE zh_TW:zh +ENV LC_ALL zh_TW.UTF-8 WORKDIR /usr/local/lib/container