use C.UTF-8 as locale

This commit is contained in:
leafee98 2023-05-14 22:32:19 +08:00
parent 0b5875bb8b
commit 8d995e4427

View file

@ -18,10 +18,14 @@ RUN true \
&& echo root:${ROOT_PASSWD} | chpasswd \ && echo root:${ROOT_PASSWD} | chpasswd \
\ \
&& apt update \ && apt update \
&& apt install --yes ssh tini zsh netcat file neovim git \ && apt install --yes ssh tini zsh netcat file neovim git locales \
&& apt clean \ && apt clean \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
\ \
&& sed -i '/C.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen \
&& update-locale LANG=C.UTF-8 \
\
&& usermod --shell /usr/bin/zsh root \ && usermod --shell /usr/bin/zsh root \
\ \
&& mkdir /run/sshd \ && mkdir /run/sshd \