Update Dockerfile
Browse files- 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
|