post gres can't be ran as root

This commit is contained in:
Jun-te Kim 2026-03-13 15:56:13 +00:00
parent 08478b17fb
commit ad189b4cac

View file

@ -21,4 +21,8 @@ RUN pip install --no-cache-dir \
# Copy source # Copy source
COPY . . COPY . .
# pg_ctl refuses to run as root — create an unprivileged user
RUN useradd -m testuser && chown -R testuser /app
USER testuser
CMD ["pytest"] CMD ["pytest"]