FROM python:3.12-slim WORKDIR /app COPY requirements.txt /app/requirements.txt RUN pip install --no-cache-dir -r requirements.txt COPY . /app ENV PORT=7860 EXPOSE 7860 CMD ["bash", "-lc", "python manage.py migrate --noinput && gunicorn config.wsgi:application --bind 0.0.0.0:7860 --workers 1 --timeout 120"]