Fix: Make management commands aware of the container environment (#9499)

This commit is contained in:
Trenton H
2025-03-26 14:17:10 -07:00
committed by GitHub
parent 6e694ad9ff
commit 9c68100dc0
11 changed files with 44 additions and 15 deletions

View File

@@ -239,6 +239,7 @@ COPY --from=compile-frontend --chown=1000:1000 /src/src/documents/static/fronten
# add users, setup scripts
# Mount the compiled frontend to expected location
RUN set -eux \
&& sed -i '1s|^#!/usr/bin/env python3|#!/command/with-contenv python3|' manage.py \
&& echo "Setting up user/group" \
&& addgroup --gid 1000 paperless \
&& useradd --uid 1000 --gid paperless --home-dir /usr/src/paperless paperless \