init: django project with CI pipeline
Some checks failed
Build and Push Docker Image / build (push) Failing after 2m47s

This commit is contained in:
2026-02-08 12:40:31 +08:00
commit a8af8d1b64
9 changed files with 103 additions and 0 deletions

13
Dockerfile Normal file
View File

@@ -0,0 +1,13 @@
FROM python:3.11-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN python manage.py collectstatic --noinput 2>/dev/null || true
EXPOSE 8000
CMD ["gunicorn", "app.wsgi:application", "--bind", "0.0.0.0:8000", "--workers", "2"]