Spaces:
Runtime error
Runtime error
| FROM nvidia/cuda:12.3.2-cudnn9-devel-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| curl \ | |
| wget \ | |
| build-essential \ | |
| ffmpeg \ | |
| libsndfile1 \ | |
| libgomp1 \ | |
| python3.10 \ | |
| python3.10-dev \ | |
| python3-pip \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 1 \ | |
| && update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1 | |
| # IMPORTANTE: Bajamos temporalmente pip a la versión 24.0 para evitar el error de metadatos de OmegaConf/Fairseq | |
| RUN python -m pip install --no-cache-dir "pip==24.0" setuptools wheel | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |