FROM python:3.12-slim WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt COPY manage.py . COPY student_api/ student_api/ COPY students/ students/ EXPOSE 7860 CMD python manage.py migrate --noinput && gunicorn student_api.wsgi:application --bind 0.0.0.0:7860 --workers 2