Skip to content

Commit 8db81f3

Browse files
committed
feature: docker: io: add UTF-8
1 parent 56439d5 commit 8db81f3

1 file changed

Lines changed: 15 additions & 2 deletions

File tree

docker/Dockerfile.io

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ WORKDIR /usr/src/cloudcmd
77

88
COPY package.json /usr/src/cloudcmd/
99

10+
ENV DEBIAN_FRONTEND=noninteractive
11+
1012
RUN apt-get update && apt-get upgrade && apt-get autoremove && \
11-
apt-get install -y netcat-openbsd mc iputils-ping vim neovim sudo && \
13+
apt-get install -y netcat-openbsd mc iputils-ping vim neovim sudo locales && \
1214
npm i wisdom nupdate version-io redrun superc8 \
1315
supertape madrun redlint putout renamify-cli runny redfork -g && \
1416
echo "> install bun" && \
@@ -35,7 +37,13 @@ RUN apt-get update && apt-get upgrade && apt-get autoremove && \
3537
echo "alias buni='bun i --no-save'" >> /etc/bash.bashrc && \
3638
echo "PS1='\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '" >> /etc/bash.bashrc && \
3739
echo "set editing-mode vi" >> /etc/inputrc && \
38-
echo "TAB: menu-complete" >> /etc/inputrc
40+
echo "TAB: menu-complete" >> /etc/inputrc && \
41+
echo "set UTF-8" && \
42+
echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
43+
echo "ru_RU.UTF-8 UTF-8" >> /etc/locale.gen && \
44+
echo "uk_UA.UTF-8 UTF-8" >> /etc/locale.gen && \
45+
echo "es_ES.UTF-8 UTF-8" >> /etc/locale.gen && \
46+
locale-gen
3947

4048
COPY . /usr/src/cloudcmd
4149

@@ -46,6 +54,11 @@ ENV cloudcmd_terminal_path=gritty
4654
ENV cloudcmd_open=false
4755
ENV PATH=node_modules/.bin:$PATH
4856

57+
ENV LANG=en_US.UTF-8
58+
ENV LANGUAGE=en_US:en
59+
ENV LC_ALL=en_US.UTF-8
60+
61+
4962
EXPOSE 8000
5063

5164
ENTRYPOINT ["/usr/src/cloudcmd/bin/cloudcmd.js"]

0 commit comments

Comments
 (0)