Spaces:
Paused
Paused
Download Dockerfile from NbAiLab/f5-tts-north-sami: direct link, hf CLI and curl.
- Browser
- Download file 2.03 kB
-
https://huggingface.co/spaces/NbAiLab/f5-tts-north-sami/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/NbAiLab/f5-tts-north-sami/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/NbAiLab/f5-tts-north-sami/resolve/main/Dockerfile
2.03 kB
| FROM docker.io/library/python:3.12.12@sha256:cb770de9f47e77715f13434d96f7ebaae7ad3a1f4fd9c8b338549bf99c9980ab | |
| RUN pip install pip -U && \ | |
| pip install \ | |
| datasets \ | |
| "huggingface-hub>=0.30" \ | |
| "hf-transfer>=0.1.4" \ | |
| "protobuf<4" \ | |
| "click<8.1" \ | |
| torch==2.5.1 | |
| WORKDIR /home/user/app | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| rsync \ | |
| libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| RUN apt-get update && \ | |
| apt-get install -y curl && \ | |
| curl -fsSL https://deb.nodesource.com/setup_20.x | bash - && \ | |
| apt-get install -y nodejs && \ | |
| rm -rf /var/lib/apt/lists/* && apt-get clean | |
| RUN chown -R 1000:1000 /var/ | |
| #RUN pip freeze > /tmp/freeze.txt | |
| RUN apt-get update && apt-get install -y fakeroot && \ | |
| mv /usr/bin/apt-get /usr/bin/.apt-get && \ | |
| echo '#!/usr/bin/env sh\nfakeroot /usr/bin/.apt-get $@' > /usr/bin/apt-get && \ | |
| chmod +x /usr/bin/apt-get && \ | |
| rm -rf /var/lib/apt/lists/* && \ | |
| useradd -m -u 1000 user | |
| RUN --mount=target=/tmp/requirements.txt,source=requirements.txt \ | |
| sed '/^f5_tts @ git+/d; /^detoxify @ git+/d' /tmp/requirements.txt > /tmp/runtime-requirements.txt && \ | |
| pip install --no-cache-dir -r /tmp/runtime-requirements.txt \ | |
| "uvicorn>=0.14.0" \ | |
| "websockets>=10.4" \ | |
| spaces==0.50.2 | |
| RUN GIT_LFS_SKIP_SMUDGE=1 git clone https://huggingface.co/spaces/mrfakename/E2-F5-TTS /tmp/E2-F5-TTS && \ | |
| cd /tmp/E2-F5-TTS && \ | |
| git checkout dacb26e11f7b54260c9b07dd3a89e55af71ec62e && \ | |
| pip install --no-cache-dir . && \ | |
| rm -rf /tmp/E2-F5-TTS | |
| RUN pip install --no-cache-dir \ | |
| "git+https://github.com/unitaryai/detoxify@6a9b738afbe0d286cb045adbb9082f4e8a64a354" | |
| #RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \ | |
| # export HF_TOKEN=$(cat /run/secrets/HF_TOKEN) | |
| COPY --chown=1000 ./ /home/user/app | |
| ENV GRADIO_SERVER_PORT=7860 | |
| ENV GRADIO_SERVER_NAME=0.0.0.0 | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |