FROM pytorch/pytorch:2.7.0-cuda12.8-cudnn9-runtime WORKDIR /app RUN apt-get update && apt-get install -y \ curl \ && rm -rf /var/lib/apt/lists/* # Python deps (omit torch, since it's already included) RUN pip install --no-cache-dir \ transformers>=4.35.0 \ safetensors>=0.4.0 \ fastapi>=0.104.0 \ uvicorn[standard]>=0.24.0 \ pydantic>=2.0.0 \ runpod COPY . /app/model COPY runpod_handler.py /app/ EXPOSE 8000 CMD ["python", "-u", "runpod_handler.py"]