Skip to content

Commit 0d312aa

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

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

docker/Dockerfile.io

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ 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 && \
1113
apt-get install -y netcat-openbsd mc iputils-ping vim neovim sudo && \
1214
npm i wisdom nupdate version-io redrun superc8 \
@@ -35,7 +37,11 @@ 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+
apt-get install -y locales && \
43+
locale-gen en_US.UTF-8 && \
44+
update-locale LANG=en_US.UTF-8
3945

4046
COPY . /usr/src/cloudcmd
4147

@@ -46,6 +52,11 @@ ENV cloudcmd_terminal_path=gritty
4652
ENV cloudcmd_open=false
4753
ENV PATH=node_modules/.bin:$PATH
4854

55+
ENV LANG=en_US.UTF-8
56+
ENV LANGUAGE=en_US:en
57+
ENV LC_ALL=en_US.UTF-8
58+
59+
4960
EXPOSE 8000
5061

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

0 commit comments

Comments
 (0)