Skip to content

Commit 6a18035

Browse files
DEV: generate only en_us locales
install locales-all installs 245MB Generating common and en_us locales installs 22MB update locales for postgres templates `locale-gen $LANG` doesn't seem to actually do anything without updates to `/etc/locale.gen`. Update the scripts to uncomment $LANG before running `update-locale`.
1 parent 20e33fb commit 6a18035

File tree

5 files changed

+515
-5
lines changed

5 files changed

+515
-5
lines changed

image/base/Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,12 @@ RUN sh -c "fping proxy && echo 'Acquire { Retries \"0\"; HTTP { Proxy \"http://p
2929
RUN apt-mark hold initscripts
3030
RUN apt-get -y upgrade
3131

32-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y locales locales-all
32+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y locales
3333
ENV LC_ALL en_US.UTF-8
3434
ENV LANG en_US.UTF-8
3535
ENV LANGUAGE en_US.UTF-8
36+
ADD locale.gen /etc/locale.gen
37+
RUN locale-gen
3638

3739
RUN install -d /usr/share/postgresql-common/pgdg &&\
3840
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc &&\
@@ -66,7 +68,6 @@ RUN cd / &&\
6668
mkdir -p /etc/runit/1.d &&\
6769
apt-get clean &&\
6870
rm -f /etc/apt/apt.conf.d/40proxy &&\
69-
locale-gen en_US &&\
7071
DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs yarn &&\
7172
npm install -g terser uglify-js pnpm
7273

0 commit comments

Comments
 (0)