Spaces:
Sleeping
Sleeping
Commit
·
90df87a
1
Parent(s):
98dbe3e
changed userid to 1000
Browse files- Dockerfile +3 -0
Dockerfile
CHANGED
|
@@ -6,7 +6,10 @@ WORKDIR /app
|
|
| 6 |
|
| 7 |
USER root
|
| 8 |
|
|
|
|
|
|
|
| 9 |
RUN mkdir -p /var/lib/postgresql/data && chown -R postgres:postgres /var/lib/postgresql/data
|
|
|
|
| 10 |
|
| 11 |
USER postgres
|
| 12 |
|
|
|
|
| 6 |
|
| 7 |
USER root
|
| 8 |
|
| 9 |
+
RUN id -u postgres
|
| 10 |
+
RUN usermod -u 1000 postgres
|
| 11 |
RUN mkdir -p /var/lib/postgresql/data && chown -R postgres:postgres /var/lib/postgresql/data
|
| 12 |
+
RUN id -u postgres
|
| 13 |
|
| 14 |
USER postgres
|
| 15 |
|