From eceb9126f0eb768f5b8ef51e2164746e7e082889 Mon Sep 17 00:00:00 2001 From: Hang Date: Mon, 24 Aug 2026 00:40:32 +0100 Subject: [PATCH] fix: create home for the new user during Dockerfile building --- .env.example | 1 + Dockerfile | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.env.example b/.env.example index 384258ee..f33d9757 100644 --- a/.env.example +++ b/.env.example @@ -5,6 +5,7 @@ DJANGO_ALLOWED_HOSTS= DOMAIN= SESSION_COOKIE_SECURE_ENABLED=true CSRF_COOKIE_SECURE_ENABLED=true +FORUM_WEBHOOK_SECRET= DATABASE_ENGINE=postgresql DATABASE_NAME=rigs diff --git a/Dockerfile b/Dockerfile index f1238e45..3bed3edb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -40,7 +40,9 @@ RUN uv run python manage.py collectstatic --noinput FROM python:3.12-slim-trixie RUN addgroup --system app \ - && adduser --system --group app + && adduser --system --group --home /home/app app \ + && mkdir -p /home/app \ + && chown app:app /home/app COPY --from=builder --chown=app:app /app /app WORKDIR /app ENV PYTHONDONTWRITEBYTECODE=1 \