Maximofn commited on
Commit
c1416cf
1 Parent(s): 8685ad7

Add dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvcr.io/nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
2
+
3
+ RUN apt-get update \
4
+ && apt-get install -y git git-lfs curl python3 python3-pip ffmpeg \
5
+ && curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash \
6
+ && git lfs install \
7
+ && rm cuda-keyring_1.0-1_all.deb \
8
+ && ln -s /usr/bin/python3 /usr/bin/python \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ RUN pip3 install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118 \
12
+ && git clone --depth 1 https://huggingface.co/spaces/coqui/xtts \
13
+ && cd xtts && pip3 install --no-cache-dir -r requirements.txt \
14
+ && pip3 install --no-cache-dir gradio==3.48.0
15
+
16
+ WORKDIR /xtts
17
+
18
+ CMD ["python3", "app.py"]