Dockerfile: fix home dir for app user (/home/app)

This commit is contained in:
Erik Thiele
2026-06-21 16:52:48 +02:00
parent 928ea92aed
commit dd6bcd9d54

View File

@@ -7,9 +7,9 @@ RUN pip install --no-cache-dir -r requirements.txt gunicorn
COPY . . COPY . .
RUN addgroup --system --gid 1000 app && adduser --system --uid 1000 --ingroup app app && \ RUN addgroup --system --gid 1000 app && adduser --system --uid 1000 --ingroup app --home /home/app app && \
mkdir -p /home/app && chown app:app /home/app && \
chown -R app:app /app && chmod -R u+w /app chown -R app:app /app && chmod -R u+w /app
ENV HOME=/app
USER app USER app
EXPOSE 5005 EXPOSE 5005