FROM python:3.12-slim RUN apt-get update && apt-get install -y ffmpeg WORKDIR /app # Copy requirements and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy your application COPY . . # Expose the port Hugging Face expects EXPOSE 7860 # Run your FastAPI app CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]