Skip to content

Commit bc26c9e

Browse files
johnstcndjarbz
andauthored
fix: generate locales in minimal and base images (#294)
* Fix Locale Generation (cherry picked from commit bfbcd84) * Include Locales Package (cherry picked from commit ac203fe) * Generate Locales (cherry picked from commit 3768039) --------- Co-authored-by: djarbz <30350993+djarbz@users.noreply.github.com>
1 parent d5a3b19 commit bc26c9e

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

images/base/ubuntu.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,13 @@ RUN systemctl enable docker
6464
# Create a symlink for standalone docker-compose usage
6565
RUN ln -s /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose
6666

67+
# Generate the desired locale (en_US.UTF-8)
68+
RUN locale-gen en_US.UTF-8
69+
6770
# Make typing unicode characters in the terminal work.
6871
ENV LANG=en_US.UTF-8
72+
ENV LANGUAGE=en_US.UTF-8
73+
ENV LC_ALL=en_US.UTF-8
6974

7075
# Remove the `ubuntu` user and add a user `coder` so that you're not developing as the `root` user
7176
RUN userdel -r ubuntu && \

images/minimal/ubuntu.Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ RUN apt-get update && \
99
curl \
1010
git \
1111
jq \
12+
locales \
1213
sudo \
1314
&& rm -rf /var/lib/apt/lists/*
1415

16+
# Generate the desired locale (en_US.UTF-8)
17+
RUN locale-gen en_US.UTF-8
18+
1519
# Make typing unicode characters in the terminal work.
1620
ENV LANG=en_US.UTF-8
21+
ENV LANGUAGE=en_US.UTF-8
22+
ENV LC_ALL=en_US.UTF-8
23+
1724
# Remove the `ubuntu` user and add a user `coder` so that you're not developing as the `root` user
1825
RUN userdel -r ubuntu && \
1926
useradd coder \

0 commit comments

Comments
 (0)