Skip to content

Commit 9531924

Browse files
authored
Update Dockerfile
1 parent cecad05 commit 9531924

File tree

1 file changed

+26
-15
lines changed

1 file changed

+26
-15
lines changed

Dockerfile

Lines changed: 26 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
1-
FROM pytorch/pytorch:2.6.0-cuda12.6-cudnn9-devel
2-
3-
WORKDIR /app/index-tts
1+
FROM nvcr.io/nvidia/cuda:12.6.3-cudnn-devel-ubuntu24.04
42
ENV TZ=Asia/Shanghai
3+
ENV DEBIAN_FRONTEND=noninteractive
4+
COPY README.txt ./
5+
6+
RUN apt update && apt install -y build-essential cmake ninja-build patchelf wget net-tools curl iputils-ping git git-lfs
7+
8+
RUN mkdir -p /app
9+
WORKDIR /app
10+
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && bash Miniconda3-latest-Linux-x86_64.sh -b -p /app/conda
511

6-
RUN apt update && apt install -y wget net-tools tree curl && wget https://github.com/index-tts/index-tts/raw/refs/heads/main/requirements.txt
7-
RUN pip install -r requirements.txt && pip install deepspeed
12+
RUN /app/conda/bin/conda init
13+
RUN conda create --name ktransformers python=3.11
14+
SHELL ["conda", "run", "-n", "ktransformers", "/bin/bash", "-c"]
15+
RUN conda activate ktransformers
16+
RUN conda install -c conda-forge libstdcxx-ng && strings ~/anaconda3/envs/ktransformers/lib/libstdc++.so.6 | grep GLIBCXX
17+
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
18+
RUN pip install packaging ninja cpufeature numpy
819

9-
RUN apt update && apt install -y ffmpeg gcc g++ cmake
20+
RUN apt install -y libtbb-dev libssl-dev libcurl4-openssl-dev libaio1 libaio-dev libgflags-dev zlib1g-dev libfmt-dev libnuma-dev
1021

11-
RUN pip install -U triton --index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/Triton-Nightly/pypi/simple/triton-nightly
22+
RUN git clone https://github.com/kvcache-ai/ktransformers.git && cd ktransformers && git submodule update --init --recursive
23+
RUN cd ktransformers && bash install.sh
1224

13-
ENV CUDA_HOME=/usr/local/cuda-12.4
14-
ENV PATH=$CUDA_HOME/bin:$PATH
15-
ENV LD_LIBRARY_PATH=$CUDA_HOME/lib64:$LD_LIBRARY_PATH
25+
RUN pip install libstdcxx-ng
26+
RUN pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu126
1627

17-
# 设置国内源
18-
RUN mkdir -p /app/index-tts && rm -rf /etc/apt/sources.list && rm -rf /etc/apt/sources.list.d/*ubuntu*
19-
COPY sources-22.04.list /etc/apt/sources.list
20-
RUN pip config set global.index-url https://mirrors.tuna.tsinghua.edu.cn/pypi/web/simple
28+
RUN pip install huggingface_hub modelscope
29+
RUN huggingface-cli download deepseek-ai/DeepSeek-V2-Lite-Chat --exclude *.safetensors --local-dir /app/model/deepseek-ai/DeepSeek-V2-Lite-Chat
30+
RUN huggingface-cli download deepseek-ai/DeepSeek-V3-0324 --exclude *.safetensors --local-dir /app/model/deepseek-ai/DeepSeek-V3-0324
31+
RUN huggingface-cli download deepseek-ai/DeepSeek-R1 --exclude *.safetensors --local-dir /app/model/deepseek-ai/DeepSeek-R1
2132

22-
ENTRYPOINT ["python", "webui.py"]
33+
CMD tail -f README.txt

0 commit comments

Comments
 (0)