Spaces:
Sleeping
Sleeping
Commit
·
3998fe4
1
Parent(s):
a2d42c7
setting permission as root
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -1,7 +1,12 @@
|
|
1 |
FROM postgres
|
2 |
|
|
|
3 |
|
4 |
RUN chmod g+w /var/lib/postgresql
|
5 |
RUN chmod g+w /var/lib/postgresql/data
|
6 |
|
|
|
|
|
|
|
|
|
7 |
EXPOSE 5432
|
|
|
1 |
FROM postgres
|
2 |
|
3 |
+
USER root
|
4 |
|
5 |
RUN chmod g+w /var/lib/postgresql
|
6 |
RUN chmod g+w /var/lib/postgresql/data
|
7 |
|
8 |
+
USER postgres
|
9 |
+
|
10 |
+
RUN ls -lh
|
11 |
+
|
12 |
EXPOSE 5432
|