调整PG的本地语言,因为建立数据全文搜索可以用到,

create new Dockerfile as blew codes:

FROM postgres:15-bullseye
RUN localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8
ENV LANG zh_CN.utf8

support docker images list:

  • postgres:15-bullseye
  • postgres:14-bullseye
  • postgres:13-bullseye