Spaces:
Sleeping
Sleeping
File size: 700 Bytes
b65231d 90749c3 1716986 c1fa8be 48365c2 ca87be1 1716986 b65231d ecf267f 0df7a22 ecf267f b65231d 0df7a22 b65231d | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | FROM python:3.12-slim
WORKDIR /app
ENV MPLCONFIGDIR=/tmp/matplotlib
# Install system dependencies for audio processing (soundfile & ffmpeg)
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
libsndfile1 \
git \
build-essential \
wget \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir uv && \
uv pip install --system --no-cache --index-strategy unsafe-best-match --extra-index-url https://download.pytorch.org/whl/cpu -r requirements.txt && \
pip install --no-cache-dir --no-deps nemo_toolkit==2.2.1
COPY . /app/src
EXPOSE 7860
CMD ["uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]
|