Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim-bullseye | |
| ENV COQUI_TOS_AGREED=1 | |
| WORKDIR /app | |
| # Install dependencies for audio, torch, building wheels | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| git ffmpeg libsndfile1 build-essential cmake pkg-config \ | |
| libffi-dev libssl-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements | |
| COPY requirements.txt . | |
| # Upgrade pip and install requirements | |
| RUN pip install --upgrade pip setuptools wheel | |
| RUN pip install --no-cache-dir torch torchaudio torchcodec | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy your app | |
| COPY server.py . | |
| EXPOSE 7860 | |
| CMD ["python", "server.py"] | |