docker-library / postgres

Docker Official Image packaging for Postgres
http://www.postgresql.org
MIT License
2.2k stars 1.14k forks source link

Debian images: Use locale-gen instead of localdef #1159

Closed lfittl closed 11 months ago

lfittl commented 11 months ago

The use of manually calling localdef caused any future update to the locales package to remove the manually installed locales, since locale-gen takes precendence. This would usually be encountered when a downstream Dockerfile added additional packages, and as a side effect caused an upgrade to the locales package.

Fix by relying on the /etc/locale.gen file, which is the official place to specify which locales should be installed.

Fixes #1112

lfittl commented 11 months ago

Thank you! 👍

Thanks for merging this! Happy to see this resolved :)