# -------- base image -------- FROM python:3.11-slim ENV PYTHONUNBUFFERED=1 \ OMP_NUM_THREADS=1 \ TOKENIZERS_PARALLELISM=false #GRADIO_MCP_SERVER=True # -------- install deps -------- WORKDIR /app COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # -------- copy source -------- COPY app ./app COPY params.cfg . COPY .env* ./ # Ports: # • 7860 → Gradio UI (HF Spaces standard) EXPOSE 7860 CMD ["python", "-m", "app.main"]