fix: set locale to zh_TW.UTF8 in quest image

This commit is contained in:
wancat committed 2023-08-25 12:07:57 +08:00
1 parent 5da311d9a4
commit 7d594e62db
1 file changed
+10 -2
+10 -2
View File
@@ -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