# Base image FROM python:3.10-slim # System dependencies RUN apt-get update && apt-get install -y git ffmpeg libsndfile1 && rm -rf /var/lib/apt/lists/* # Set workdir WORKDIR /code # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy FastAPI app COPY app.py . # Expose default HF port EXPOSE 7860 # Start FastAPI CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]