FROM python:3.10 WORKDIR /app # Install OS-level audio libs RUN apt-get update && apt-get install -y \ libsndfile1 \ ffmpeg # Copy requirements first COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the entire backend COPY . . # Hugging Face uses port 7860 EXPOSE 7860 CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]