docker-library / postgres

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

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

Closed lfittl closed 7 months ago

lfittl commented 7 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 7 months ago

Thank you! 👍

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