FROM python:3.9-slim WORKDIR /app COPY . . RUN pip install --no-cache-dir --upgrade -r requirements.txt EXPOSE 7860 ENV MPLCONFIGDIR=/tmp/matplotlib CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "bot_detector_api:app"]