Skip to content

Commit 035263a

Browse files
committed
fix: Set utf-8 default locale
1 parent 294f1f3 commit 035263a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Dockerfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,18 @@ EXPOSE 5432
990990

991991
ENV POSTGRES_HOST=/var/run/postgresql
992992
ENV POSTGRES_USER=supabase_admin
993+
RUN apt-get update && apt-get install -y --no-install-recommends \
994+
locales \
995+
&& rm -rf /var/lib/apt/lists/* && \
996+
localedef -i en_US -c -f UTF-8 -A /usr/share/locale/locale.alias en_US.UTF-8 \
997+
&& localedef -i C -c -f UTF-8 -A /usr/share/locale/locale.alias C.UTF-8
998+
RUN echo "C.UTF-8 UTF-8" > /etc/locale.gen && echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen && locale-gen
999+
ENV LANG en_US.UTF-8
1000+
ENV LANGUAGE en_US:en
1001+
ENV LC_ALL en_US.UTF-8
1002+
ENV LC_CTYPE=C.UTF-8
1003+
ENV LC_COLLATE=C.UTF-8
1004+
ENV LOCALE_ARCHIVE /usr/lib/locale/locale-archive
9931005
CMD ["postgres", "-D", "/etc/postgresql"]
9941006

9951007
####################

0 commit comments

Comments
 (0)