FROM python:3.10-slim # Install dependencies RUN pip install --no-cache-dir fastapi uvicorn transformers # Create writable cache dir RUN mkdir -p /data/cache # Copy app COPY app.py /app/app.py WORKDIR /app # Run CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]