Revert "DEV: generate only en_us locales"

This commit reverts a1d8d0bbcb

There are too many reports of rebuilds breaking due to this change so
revert for now at the expense of a 10% larger compressed Docker image.
This commit is contained in:
Alan Guo Xiang Tan 2025-01-31 11:53:01 +08:00
parent ad89eb3b10
commit fc0be3ba23
No known key found for this signature in database
GPG Key ID: 286D2AB58F8C86B6
4 changed files with 1 additions and 6 deletions

View File

@ -50,7 +50,7 @@ RUN echo "deb http://deb.debian.org/debian ${DEBIAN_RELEASE}-backports main" > "
RUN --mount=type=tmpfs,target=/var/log \
echo "debconf debconf/frontend select Teletype" | debconf-set-selections; \
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install gnupg sudo curl fping locales \
apt-get -y update && DEBIAN_FRONTEND=noninteractive apt-get -y install gnupg sudo curl fping locales locales-all \
ca-certificates rsync \
cmake g++ pkg-config patch \
libxslt-dev libcurl4-openssl-dev \
@ -94,8 +94,6 @@ RUN --mount=type=tmpfs,target=/var/log \
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US.UTF-8
RUN sed -i "s/^# $LANG/$LANG/" /etc/locale.gen; \
locale-gen
RUN --mount=type=tmpfs,target=/root/.npm \
npm install -g terser uglify-js pnpm

View File

@ -53,7 +53,6 @@ run:
contents: |
#!/bin/bash -x
sed -i "s/^# $LANG/$LANG/" /etc/locale.gen
locale-gen && update-locale
mkdir -p /shared/postgres_run
chown postgres:postgres /shared/postgres_run
chmod 775 /shared/postgres_run

View File

@ -51,7 +51,6 @@ run:
contents: |
#!/bin/bash
sed -i "s/^# $LANG/$LANG/" /etc/locale.gen
locale-gen && update-locale
mkdir -p /shared/postgres_run
chown postgres:postgres /shared/postgres_run
chmod 775 /shared/postgres_run

View File

@ -51,7 +51,6 @@ run:
contents: |
#!/bin/bash
sed -i "s/^# $LANG/$LANG/" /etc/locale.gen
locale-gen && update-locale
mkdir -p /shared/postgres_run
chown postgres:postgres /shared/postgres_run
chmod 775 /shared/postgres_run