🚑 Fix locales handling

This commit is contained in:
Franck Nijhof 2020-05-19 10:17:15 +02:00
parent e9797834d2
commit 2332389d70
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

View file

@ -5,6 +5,7 @@ FROM ${BUILD_FROM}
# Confiure locale # Confiure locale
ENV \ ENV \
LANG=en_US.UTF-8 \ LANG=en_US.UTF-8 \
LANGUAGE=en_US:en \
LC_ALL=en_US.UTF-8 LC_ALL=en_US.UTF-8
# Set shell # Set shell
@ -41,12 +42,11 @@ RUN \
wget=1.20.1-1.1 \ wget=1.20.1-1.1 \
zsh=5.7.1-1 \ zsh=5.7.1-1 \
\ \
&& locale-gen en_US.UTF-8 \ && sed -i -e 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen \
&& locale-gen \
\ \
&& curl https://bootstrap.pypa.io/get-pip.py | python3 \ && curl https://bootstrap.pypa.io/get-pip.py | python3 \
\ \
&& locale-gen en_US.UTF-8 \
\
&& if [[ "${BUILD_ARCH}" = "aarch64" ]]; then ARCH="arm64"; fi \ && if [[ "${BUILD_ARCH}" = "aarch64" ]]; then ARCH="arm64"; fi \
&& if [[ "${BUILD_ARCH}" = "amd64" ]]; then ARCH="amd64"; fi \ && if [[ "${BUILD_ARCH}" = "amd64" ]]; then ARCH="amd64"; fi \
&& curl -J -L -o /tmp/code.tar.gz \ && curl -J -L -o /tmp/code.tar.gz \