Skip to content

Commit 2f30477

Browse files
DEV: uncomment existing locale rather than echo new one.
This prevents double entries for en_US if LANG remains en_US.UTF-8 if it's uncommented again via postgres template multiple entries probably aren't harmful, but I'd prefer the file to be clean.
1 parent 7660fb0 commit 2f30477

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

image/base/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ 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-
RUN echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen; \
36+
RUN sed "s/^# $LANG/$LANG/" /etc/locale.gen; \
3737
locale-gen
3838

3939
RUN install -d /usr/share/postgresql-common/pgdg &&\

0 commit comments

Comments
 (0)