Add locales support and set UTF-8 environment variables in Dockerfile
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 2m1s
All checks were successful
Build k8s-mgmt-pod image / Build & Push (push) Successful in 2m1s
This commit is contained in:
parent
43aa568452
commit
f0e72c69a0
1 changed files with 7 additions and 0 deletions
|
|
@ -52,6 +52,9 @@ RUN apt-get update \
|
||||||
openssl \
|
openssl \
|
||||||
sudo \
|
sudo \
|
||||||
tini \
|
tini \
|
||||||
|
locales \
|
||||||
|
&& echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen \
|
||||||
|
&& locale-gen \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& mkdir -p /var/run/sshd /var/lib/k8s-mgmt-pod /etc/ssh/sshd_config.d \
|
&& mkdir -p /var/run/sshd /var/lib/k8s-mgmt-pod /etc/ssh/sshd_config.d \
|
||||||
&& useradd --create-home --shell /bin/bash admin \
|
&& 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 \
|
RUN chmod 0755 /usr/local/bin/entrypoint.sh \
|
||||||
&& chmod 0644 /etc/profile.d/20-k8s-tools-completion.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
|
EXPOSE 2222 3000
|
||||||
|
|
||||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue