feat: update backend Docker configuration for log management

This commit is contained in:
ramvignesh-b
2026-04-26 13:20:18 +05:30
parent ce370a9fc6
commit fbd4bd4aec
+4 -3
View File
@@ -9,9 +9,10 @@ COPY pyproject.toml uv.lock ./
RUN uv sync --frozen --no-dev
COPY . .
RUN uv run manage.py migrate
RUN mkdir -p /app/logs
# Make the temp log dir writable since server is running rootless
RUN mkdir -p /app/logs && chmod -R 777 /app/logs
EXPOSE 8000
CMD ["uv", "run", "--frozen", "gunicorn", "--bind", "0.0.0.0:8000", "--access-logfile", "-", "--error-logfile", "-", "--capture-output", "config.wsgi:application"]
CMD ["sh", "-c", "uv run manage.py migrate && uv run gunicorn --bind 0.0.0.0:8000 --access-logfile - --error-logfile - --capture-output --log-level debug config.wsgi:application"]