Spaces:
Sleeping
Sleeping
| FROM debian:bullseye-slim | |
| ENV NVIDIA_VISIBLE_DEVICES all | |
| ENV NVIDIA_DRIVER_CAPABILITIES compute,utility | |
| ENV NVIDIA_REQUIRE_CUDA "cuda>=8.0" | |
| ENV LD_LIBRARY_PATH=/usr/local/cuda-11.8/targets/x86_64-linux/lib:/usr/local/cuda-11.8/targets/x86_64-linux/include:/usr/local/cuda/include:/usr/local/cuda-11.8:/usr/local/cuda/lib:/usr/local/cuda/lib64:$LD_LIBRARY_PATH | |
| RUN apt-get update && apt-get install -y gnupg2 curl | |
| RUN curl -fsSL https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64/7fa2af80.pub | gpg --dearmor -o /usr/share/keyrings/cuda-archive-keyring.gpg | |
| # Add the NVIDIA repository to the APT sources list | |
| RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub | |
| RUN apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub | |
| RUN echo "deb https://developer.download.nvidia.com/compute/cuda/repos/debian11/x86_64 /" > /etc/apt/sources.list.d/cuda.list | |
| # Install FFmpeg | |
| RUN apt-get update && \ | |
| apt-get install -y python3-pip ffmpeg libcublas-11-8 libcudnn8=8.6.0.163-1+cuda11.8 | |
| #libcudnn8=8.8.0.121-1+cuda11.8 | |
| USER root | |
| ARG DEBIAN_FRONTEND=noninteractive | |
| LABEL github_repo="https://github.com/SWivid/F5-TTS" | |
| RUN set -x \ | |
| && apt-get update \ | |
| && apt-get -y install wget curl man git less openssl libssl-dev unzip unar build-essential aria2 tmux vim \ | |
| && apt-get install -y openssh-server sox libsox-fmt-all libsox-fmt-mp3 libsndfile1-dev ffmpeg \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && apt-get clean | |
| WORKDIR /workspace | |
| RUN git clone https://github.com/SWivid/F5-TTS.git \ | |
| && cd F5-TTS \ | |
| && pip install -e .[eval] | |
| ENV SHELL=/bin/bash | |
| WORKDIR /workspace/F5-TTS | |