Use the default locale before the new one is ready

This commit is contained in:
tcely 2025-04-23 13:02:17 -04:00 committed by GitHub
parent 7987882a11
commit 21d884c6e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -48,9 +48,11 @@ RUN --mount=type=cache,id=apt-lib-cache-${TARGETARCH},sharing=private,target=/va
set -x && \
apt-get update && \
# Install locales
LC_ALL='C' LANG='C' LANGUAGE='C' \
apt-get -y --no-install-recommends install locales && \
printf -- "en_US.UTF-8 UTF-8\n" > /etc/locale.gen && \
locale-gen en_US.UTF-8 && \
# localedef -v -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 && \
printf -- "${LC_ALL} UTF-8\n" > /etc/locale.gen && \
locale-gen && \
# Clean up
apt-get -y autopurge && \
apt-get -y autoclean && \