Skip to content

Commit 30fec38

Browse files
DEV: generate only en_us locales
install locales-all installs 245MB Generating common and en_us locales installs 22MB
1 parent 44134a2 commit 30fec38

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

image/base/slim.Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,11 @@ RUN sh -c "fping proxy && echo 'Acquire { Retries \"0\"; HTTP { Proxy \"http://p
3434
RUN apt-mark hold initscripts
3535
RUN apt-get -y upgrade
3636

37-
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y locales locales-all
37+
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y locales
3838
ENV LC_ALL en_US.UTF-8
3939
ENV LANG en_US.UTF-8
4040
ENV LANGUAGE en_US.UTF-8
41+
RUN locale-gen en_US
4142

4243
RUN install -d /usr/share/postgresql-common/pgdg &&\
4344
curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc &&\
@@ -71,7 +72,6 @@ RUN cd / &&\
7172
mkdir -p /etc/runit/1.d &&\
7273
apt-get clean &&\
7374
rm -f /etc/apt/apt.conf.d/40proxy &&\
74-
locale-gen en_US &&\
7575
DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs yarn &&\
7676
npm install -g terser uglify-js pnpm
7777

0 commit comments

Comments
 (0)