Skip to content

Commit fdb4d6b

Browse files
committed
Add locale variables
1 parent 4b52e2c commit fdb4d6b

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,16 @@ COPY --from=ghcr.io/graalvm/native-image-community:21-ol9 /usr/lib64/graalvm/gra
2424
RUN <<-EOT
2525
set -eux
2626
apt-get update
27-
apt-get install -y curl tar apt-transport-https ca-certificates gnupg
27+
apt-get install -y curl tar apt-transport-https ca-certificates gnupg locales
28+
locale-gen en_US.UTF-8
2829
groupadd --gid 1001 non-root-user
2930
useradd --uid 1001 --gid 1001 -m non-root-user
3031
apt-get clean
3132
rm -rf /var/lib/apt/lists/*
3233
EOT
3334

35+
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
36+
3437
# See: https://gist.github.com/wavezhang/ba8425f24a968ec9b2a8619d7c2d86a6
3538
RUN <<-EOT
3639
set -eux
@@ -82,14 +85,17 @@ RUN <<-EOT
8285
set -eux
8386
apt-get update
8487
apt-get install -y curl tar apt-transport-https ca-certificates gnupg \
85-
socat less debian-goodies autossh ca-certificates-java python3-pip
88+
socat less debian-goodies autossh ca-certificates-java python3-pip locales
89+
locale-gen en_US.UTF-8
8690
groupadd --gid 1001 non-root-user
8791
useradd --uid 1001 --gid 1001 -m non-root-user
8892
apt-get clean
8993
rm -rf /var/lib/apt/lists/*
9094
mkdir -p /usr/local/lib/docker/cli-plugins /usr/local/bin
9195
EOT
9296

97+
ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
98+
9399
# Install Docker Compose plugin and yq YAML processor
94100
RUN <<-EOT
95101
set -eu

0 commit comments

Comments
 (0)