FROM python:3.11-slim WORKDIR /code RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/* && \ pip install --no-cache-dir -U pip && \ pip install --no-cache-dir torch==2.8.0 --index-url https://download.pytorch.org/whl/cpu && \ pip install --no-cache-dir pillow fastapi uvicorn pydantic huggingface_hub accelerate safetensors tokenizers && \ pip install --no-cache-dir "transformers==4.56.2" && \ pip install --no-cache-dir "sentence-transformers[image]==6.1.0" COPY app.py . CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]