From f0e72c69a0810cfefe0423e01851eb09e0057209 Mon Sep 17 00:00:00 2001 From: Michael Trip Date: Wed, 24 Jun 2026 11:17:12 +0200 Subject: [PATCH] Add locales support and set UTF-8 environment variables in Dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index d3710bc..6e0d6b8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -52,6 +52,9 @@ RUN apt-get update \ openssl \ sudo \ tini \ + locales \ + && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \ + && locale-gen \ && rm -rf /var/lib/apt/lists/* \ && mkdir -p /var/run/sshd /var/lib/k8s-mgmt-pod /etc/ssh/sshd_config.d \ && useradd --create-home --shell /bin/bash admin \ @@ -100,6 +103,10 @@ COPY entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod 0755 /usr/local/bin/entrypoint.sh \ && chmod 0644 /etc/profile.d/20-k8s-tools-completion.sh +ENV LANG=en_US.UTF-8 +ENV LANGUAGE=en_US:en +ENV LC_ALL=en_US.UTF-8 + EXPOSE 2222 3000 HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \