FROM python:3.10-slim # Install dependencies RUN pip install --no-cache-dir fastapi uvicorn torch transformers # Copy model + code WORKDIR /app COPY . . # Expose port EXPOSE 8000 # Start FastAPI CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]