set path for user postgres

This commit is contained in:
Bernhard Radermacher
2026-02-27 08:25:38 +01:00
parent 3b990f0899
commit ecedfb8ab1

View File

@@ -3,7 +3,8 @@ FROM debian:trixie-slim
RUN set -eux && \
groupadd -r postgres --gid=5432 && \
useradd -r -g postgres --uid=5432 --home-dir=/var/lib/postgresql --shell=/bin/bash postgres && \
install --verbose --directory --owner postgres --group postgres --mode 1755 /var/lib/postgresql
install --verbose --directory --owner postgres --group postgres --mode 1755 /var/lib/postgresql && \
echo 'export PATH="${PATH}:/usr/lib/postgresql/15/bin"' > /var/lib/postgresql/.profile
RUN apt-get update && \
apt-get install -y --no-install-recommends \