From 3d88469cd1b265dcb7253f8612df967e1bd3acd1 Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:41:37 -0500 Subject: [PATCH 1/3] Fix Locale Generation (cherry picked from commit bfbcd84e4e01142778015001a3ad0d22218ede4a) --- images/minimal/ubuntu.Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/images/minimal/ubuntu.Dockerfile b/images/minimal/ubuntu.Dockerfile index b260d35..a412d1d 100644 --- a/images/minimal/ubuntu.Dockerfile +++ b/images/minimal/ubuntu.Dockerfile @@ -12,8 +12,14 @@ RUN apt-get update && \ sudo \ && rm -rf /var/lib/apt/lists/* +# Generate the desired locale (en_US.UTF-8) +RUN locale-gen en_US.UTF-8 + # Make typing unicode characters in the terminal work. ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US.UTF-8 +ENV LC_ALL=en_US.UTF-8 + # Remove the `ubuntu` user and add a user `coder` so that you're not developing as the `root` user RUN userdel -r ubuntu && \ useradd coder \ From 2e8a3440a0062e0292fd4be7f320c2a226fbc8b1 Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:44:29 -0500 Subject: [PATCH 2/3] Include Locales Package (cherry picked from commit ac203fe744ba7a46d79d851b0560916a4ea21d2b) --- images/minimal/ubuntu.Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/images/minimal/ubuntu.Dockerfile b/images/minimal/ubuntu.Dockerfile index a412d1d..d38cadb 100644 --- a/images/minimal/ubuntu.Dockerfile +++ b/images/minimal/ubuntu.Dockerfile @@ -9,6 +9,7 @@ RUN apt-get update && \ curl \ git \ jq \ + locales \ sudo \ && rm -rf /var/lib/apt/lists/* From 455163f1e599cae568e60da35b3d50d83558e513 Mon Sep 17 00:00:00 2001 From: djarbz <30350993+djarbz@users.noreply.github.com> Date: Fri, 25 Oct 2024 11:47:42 -0500 Subject: [PATCH 3/3] Generate Locales (cherry picked from commit 37680391fe91bf342a31f57976671615a3aeea00) --- images/base/ubuntu.Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/images/base/ubuntu.Dockerfile b/images/base/ubuntu.Dockerfile index 579cad0..15a59e8 100644 --- a/images/base/ubuntu.Dockerfile +++ b/images/base/ubuntu.Dockerfile @@ -64,8 +64,13 @@ RUN systemctl enable docker # Create a symlink for standalone docker-compose usage RUN ln -s /usr/libexec/docker/cli-plugins/docker-compose /usr/bin/docker-compose +# Generate the desired locale (en_US.UTF-8) +RUN locale-gen en_US.UTF-8 + # Make typing unicode characters in the terminal work. ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US.UTF-8 +ENV LC_ALL=en_US.UTF-8 # Remove the `ubuntu` user and add a user `coder` so that you're not developing as the `root` user RUN userdel -r ubuntu && \