File tree 2 files changed +5
-2
lines changed 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -28,10 +28,11 @@ RUN set -x \
28
28
&& gosu nobody true \
29
29
&& apt-get purge -y --auto-remove ca-certificates wget
30
30
31
+ ENV LANG en_US.utf8
32
+ ENV LANGUAGE en_US
31
33
# make the "en_US.UTF-8" locale so postgres will be utf-8 enabled by default
32
34
RUN apt-get update && apt-get install -y locales && rm -rf /var/lib/apt/lists/* \
33
- && localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8
34
- ENV LANG en_US.utf8
35
+ && localedef -i $LANGUAGE -c -f UTF-8 -A /usr/share/locale/locale.alias $LANG
35
36
36
37
RUN mkdir /docker-entrypoint-initdb.d
37
38
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
set -e
3
3
4
+ localedef -i $LANGUAGE -c -f UTF-8 -A /usr/share/locale/locale.alias $LANG
5
+
4
6
# usage: file_env VAR [DEFAULT]
5
7
# ie: file_env 'XYZ_DB_PASSWORD' 'example'
6
8
# (will allow for "$XYZ_DB_PASSWORD_FILE" to fill in the value of
You can’t perform that action at this time.
0 commit comments