mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-06-08 11:17:27 +00:00
post gres can't be ran as root
This commit is contained in:
parent
08478b17fb
commit
ad189b4cac
1 changed files with 4 additions and 0 deletions
|
|
@ -21,4 +21,8 @@ RUN pip install --no-cache-dir \
|
|||
# Copy source
|
||||
COPY . .
|
||||
|
||||
# pg_ctl refuses to run as root — create an unprivileged user
|
||||
RUN useradd -m testuser && chown -R testuser /app
|
||||
USER testuser
|
||||
|
||||
CMD ["pytest"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue