FROM python:3.10-slim # Install system dependencies RUN apt-get update && apt-get install -y git # Install Python dependencies RUN pip install --no-cache-dir fastapi uvicorn transformers torch # Copy app files COPY app.py /app/app.py WORKDIR /app # Start FastAPI server CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]