FROM python:3.10-slim # Install dependencies RUN apt-get update && apt-get install -y libglib2.0-0 && \ pip install --no-cache-dir fastapi uvicorn transformers torch pillow # Copy code COPY . /app WORKDIR /app # Run FastAPI CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]