File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,11 @@ WORKDIR /tools
55# 安装依赖
66RUN yum -y install util-linux dos2unix
77
8+ RUN yum -y install postgresql postgresql-server \
9+ &&mkdir /data\
10+ &&chown -R postgres /data\
11+ &&chown -R postgres /tools
12+
813ENV TZ=Asia/Shanghai
914
1015COPY ./update-pg-password.sh /usr/local/bin
@@ -17,12 +22,9 @@ RUN chmod +x /usr/local/bin/docker-entrypoint.sh
1722RUN chmod +x /usr/local/bin/update-pg-password.sh
1823RUN chmod +x /docker-entrypoint-initdb.d/10_eulixspace.sh
1924
25+ ENTRYPOINT ["docker-entrypoint.sh" ]
2026
21- RUN yum -y install postgresql postgresql-server \
22- &&mkdir /data\
23- &&chown -R postgres /data\
24- &&chown -R postgres /tools
27+ STOPSIGNAL SIGINT
2528
26- USER postgres
27- RUN initdb -D /data \
28- &&pg_ctl -D /data/ -l /data/logfile start
29+ EXPOSE 5432
30+ CMD ["postgres" ]
You can’t perform that action at this time.
0 commit comments