fuliai commited on
Commit
89b5203
·
verified ·
1 Parent(s): f4b56d0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -69,6 +69,10 @@ WORKDIR ${WORKDIR}
69
  COPY run.sh ${WORKDIR}/run.sh
70
  RUN chmod +x ${WORKDIR}/run.sh
71
 
 
 
 
 
72
  # 更改现有的 postgres 用户 UID 和 GID 为 1000
73
  USER root
74
  RUN usermod -u 1000 postgres && groupmod -g 1000 postgres && \
 
69
  COPY run.sh ${WORKDIR}/run.sh
70
  RUN chmod +x ${WORKDIR}/run.sh
71
 
72
+ # 以 root 用户复制 import-db.sh 并设置权限
73
+ COPY import-db.sh /docker-entrypoint-initdb.d/
74
+ RUN chmod +x /docker-entrypoint-initdb.d/import-db.sh
75
+
76
  # 更改现有的 postgres 用户 UID 和 GID 为 1000
77
  USER root
78
  RUN usermod -u 1000 postgres && groupmod -g 1000 postgres && \