Skip to content

Commit 9fa3914

Browse files
committed
Edit 9.5 Dockerfile USER before ENTRYPOINT
1 parent 811d339 commit 9fa3914

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

9.5/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ RUN apt-get update \
6060
postgresql-contrib-$PG_MAJOR=$PG_VERSION \
6161
&& rm -rf /var/lib/apt/lists/*
6262

63-
USER 1001
6463

6564
# make the sample config easier to munge (and "correct by default")
6665
RUN mv -v /usr/share/postgresql/$PG_MAJOR/postgresql.conf.sample /usr/share/postgresql/ \
@@ -76,6 +75,7 @@ VOLUME /var/lib/postgresql/data
7675

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

8181
EXPOSE 5432

0 commit comments

Comments
 (0)