Skip to content

Commit 608a10f

Browse files
author
Jérémy Besson
committed
USER 10000080000 with one USER
1 parent 01c2561 commit 608a10f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

9.5/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ RUN set -ex; \
1313

1414
# explicitly set user/group IDs
1515
#RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=1001 postgres
16-
RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=1001 postgres
17-
16+
#RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=1001 postgres
17+
RUN groupadd -r postgres --gid=999 && useradd -r -g postgres --uid=1000080001 postgres
1818

1919
# grab gosu for easy step-down from root
2020
ENV GOSU_VERSION 1.7
@@ -75,7 +75,7 @@ VOLUME /var/lib/postgresql/data
7575

7676
COPY docker-entrypoint.sh /usr/local/bin/
7777
RUN ln -s usr/local/bin/docker-entrypoint.sh / # backwards compat
78-
USER 1001
78+
USER 1000080001
7979
ENTRYPOINT ["docker-entrypoint.sh"]
8080

8181
EXPOSE 5432

0 commit comments

Comments
 (0)