Skip to content

Commit

Permalink
add docker build postgres local zh_cn.
Browse files Browse the repository at this point in the history
  • Loading branch information
vnobo committed Nov 28, 2023
1 parent dfc39ed commit a3a0134
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions boot/postgres/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM postgres:latest

# 设置时区
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN localedef -i zh_CN -c -f UTF-8 -A /usr/share/locale/locale.alias zh_CN.UTF-8
RUN localedef -i zh_HK -c -f UTF-8 -A /usr/share/locale/locale.alias zh_HK.UTF-8
RUN localedef -i zh_TW -c -f UTF-8 -A /usr/share/locale/locale.alias zh_TW.UTF-8
ENV LANG zh_CN.utf8

0 comments on commit a3a0134

Please sign in to comment.