fuliai commited on
Commit
b0685f2
1 Parent(s): 39613a3

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -87,6 +87,7 @@ RUN initdb -D /var/lib/postgresql/data && \
87
  createdb -O $POSTGRES_USER $POSTGRES_DB && \
88
  pg_ctl stop -D /var/lib/postgresql/data
89
 
 
90
  # 添加条件导入的 shell 脚本
91
  COPY import-db.sh /docker-entrypoint-initdb.d/
92
  RUN chmod +x /docker-entrypoint-initdb.d/import-db.sh
 
87
  createdb -O $POSTGRES_USER $POSTGRES_DB && \
88
  pg_ctl stop -D /var/lib/postgresql/data
89
 
90
+ USER root
91
  # 添加条件导入的 shell 脚本
92
  COPY import-db.sh /docker-entrypoint-initdb.d/
93
  RUN chmod +x /docker-entrypoint-initdb.d/import-db.sh