Add locale support and environment variables to Dockerfile
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 1m49s

This commit is contained in:
Michael Trip 2026-06-29 09:42:12 +02:00
parent 47fe90296e
commit 998012fdff

View file

@ -35,6 +35,9 @@ ARG OIDC_LOGIN_VERSION=1.34.0
ENV DEBIAN_FRONTEND=noninteractive \ ENV DEBIAN_FRONTEND=noninteractive \
LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 \
WEB_SSH_PORT=3000 \ WEB_SSH_PORT=3000 \
WEBSSH2_LISTEN_PORT=3001 \ WEBSSH2_LISTEN_PORT=3001 \
WEBSSH2_SSH_HOST=127.0.0.1 \ WEBSSH2_SSH_HOST=127.0.0.1 \
@ -51,6 +54,7 @@ RUN apt-get update \
bash-completion \ bash-completion \
ca-certificates \ ca-certificates \
curl \ curl \
locales \
unzip \ unzip \
tar \ tar \
nginx-light \ nginx-light \
@ -93,6 +97,9 @@ RUN apt-get update \
&& kubectl completion bash > /etc/bash_completion.d/kubectl \ && kubectl completion bash > /etc/bash_completion.d/kubectl \
&& helm completion bash > /etc/bash_completion.d/helm \ && helm completion bash > /etc/bash_completion.d/helm \
&& chmod 0644 /etc/bash_completion.d/kubectl /etc/bash_completion.d/helm \ && chmod 0644 /etc/bash_completion.d/kubectl /etc/bash_completion.d/helm \
&& sed -i 's/^# *en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen en_US.UTF-8 \
&& update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8 \
&& rm -f /tmp/kubectl.sha256 \ && rm -f /tmp/kubectl.sha256 \
&& rm -rf /tmp/linux-amd64 \ && rm -rf /tmp/linux-amd64 \
&& rm -f \ && rm -f \