FROM python:3.12-slim WORKDIR /app RUN pip install --no-cache-dir "fastapi>=0.115" "uvicorn>=0.30" "python-multipart>=0.0.9" COPY app.py . ENV DATA_DIR=/tmp/uploads EXPOSE 7860 CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]