File tree Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Expand file tree Collapse file tree 4 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,12 @@ RUN sh -c "fping proxy && echo 'Acquire { Retries \"0\"; HTTP { Proxy \"http://p
29
29
RUN apt-mark hold initscripts
30
30
RUN apt-get -y upgrade
31
31
32
- RUN DEBIAN_FRONTEND=noninteractive apt-get install -y locales locales-all
32
+ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y locales
33
33
ENV LC_ALL en_US.UTF-8
34
34
ENV LANG en_US.UTF-8
35
35
ENV LANGUAGE en_US.UTF-8
36
+ RUN sed -i "s/^# $LANG/$LANG/" /etc/locale.gen; \
37
+ locale-gen
36
38
37
39
RUN install -d /usr/share/postgresql-common/pgdg &&\
38
40
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 / &&\
66
68
mkdir -p /etc/runit/1.d &&\
67
69
apt-get clean &&\
68
70
rm -f /etc/apt/apt.conf.d/40proxy &&\
69
- locale-gen en_US &&\
70
71
DEBIAN_FRONTEND=noninteractive apt-get install -y nodejs yarn &&\
71
72
npm install -g terser uglify-js pnpm
72
73
Original file line number Diff line number Diff line change 17
17
to : sv start postgres || exit 1
18
18
19
19
run :
20
- - exec : locale-gen $LANG && update-locale
20
+ - exec : sed -i "s/^# $LANG/$LANG/" /etc/locale.gen
21
+ - exec : locale-gen && update-locale
21
22
- exec : mkdir -p /shared/postgres_run
22
23
- exec : chown postgres:postgres /shared/postgres_run
23
24
- exec : chmod 775 /shared/postgres_run
Original file line number Diff line number Diff line change 52
52
chmod : " +x"
53
53
contents : |
54
54
#!/bin/bash
55
- locale-gen $LANG && update-locale
55
+ sed -i "s/^# $LANG/$LANG/" /etc/locale.gen
56
+ locale-gen && update-locale
56
57
mkdir -p /shared/postgres_run
57
58
chown postgres:postgres /shared/postgres_run
58
59
chmod 775 /shared/postgres_run
Original file line number Diff line number Diff line change 50
50
chmod : " +x"
51
51
contents : |
52
52
#!/bin/bash
53
- locale-gen $LANG && update-locale
53
+ sed -i "s/^# $LANG/$LANG/" /etc/locale.gen
54
+ locale-gen && update-locale
54
55
mkdir -p /shared/postgres_run
55
56
chown postgres:postgres /shared/postgres_run
56
57
chmod 775 /shared/postgres_run
You can’t perform that action at this time.
0 commit comments