eienmojiki
commited on
Commit
•
18f210c
1
Parent(s):
3f0c75d
Update Dockerfile
Browse files- Dockerfile +7 -1
Dockerfile
CHANGED
@@ -1,10 +1,16 @@
|
|
1 |
FROM postgres:latest
|
2 |
|
3 |
-
|
|
|
|
|
4 |
|
5 |
ENV POSTGRES_PASSWORD=kogakisaki \
|
6 |
PGDATA=/var/lib/postgresql/data
|
7 |
|
|
|
|
|
|
|
|
|
8 |
EXPOSE 5432
|
9 |
|
10 |
CMD ["postgres"]
|
|
|
1 |
FROM postgres:latest
|
2 |
|
3 |
+
USER root
|
4 |
+
|
5 |
+
RUN chown -R postgres: /var
|
6 |
|
7 |
ENV POSTGRES_PASSWORD=kogakisaki \
|
8 |
PGDATA=/var/lib/postgresql/data
|
9 |
|
10 |
+
VOLUME /var/lib/postgresql/data
|
11 |
+
|
12 |
+
USER postgres
|
13 |
+
|
14 |
EXPOSE 5432
|
15 |
|
16 |
CMD ["postgres"]
|