FROM python:3.11-slim WORKDIR /app # Install deps COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy app COPY . . # Create generated dir RUN mkdir -p /app/generated EXPOSE 5050 CMD ["gunicorn", "-b", "0.0.0.0:5050", "-w", "2", "--timeout", "120", "--access-logfile", "-", "app:app"]