refactor: centralize log directory path handling and remove redundant log directory creation in Dockerfile

This commit is contained in:
ramvignesh-b
2026-04-29 00:34:16 +05:30
parent 16a04ae4b8
commit 46c7d9ffeb
2 changed files with 11 additions and 7 deletions
-3
View File
@@ -10,9 +10,6 @@ RUN uv sync --frozen --no-dev
COPY . .
# Make the temp log dir writable since server is running rootless
RUN mkdir -p /app/logs && chmod -R 777 /app/logs
EXPOSE 8000
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"]