FROM python:3.11-slim LABEL org.opencontainers.image.source="https://gitea.chatgqt.top/gqt/test-ci" 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"]