Skip to content

Commit 127b585

Browse files
committed
Set UID
1 parent 059f6a5 commit 127b585

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎Dockerfile‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ FROM almalinux:9.6
22
RUN dnf -y update && dnf -y install dnf-utils
33
RUN dnf -y module disable postgresql
44
RUN dnf -y install https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
5+
RUN groupadd -g 26 postgres && \
6+
useradd -u 26 -g 26 -s /bin/bash -d /var/lib/postgresql postgres
57
RUN dnf -y install \
68
postgresql17-17.6-1PGDG.rhel9 \
79
postgresql17-server-17.6-1PGDG.rhel9 \
810
postgresql17-contrib-17.6-1PGDG.rhel9 \
911
postgresql17-libs-17.6-1PGDG.rhel9
12+
USER 26

0 commit comments

Comments
 (0)