|
|
|
|
|
FROM nvidia/cuda:11.7.0-base-ubuntu20.04 |
|
|
|
|
|
WORKDIR /app |
|
|
|
|
|
RUN apt-get update && apt-get install -y git wget build-essential |
|
|
|
|
|
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \ |
|
bash Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda && \ |
|
rm Miniconda3-latest-Linux-x86_64.sh |
|
ENV PATH="/miniconda/bin:${PATH}" |
|
|
|
|
|
RUN git clone https://github.com/Pranjalya/tts-tortoise-gradio.git /app/tortoise |
|
|
|
|
|
WORKDIR /app/tortoise |
|
|
|
|
|
RUN conda create -n ttts-fast python=3.8 && \ |
|
echo "source activate ttts-fast" > ~/.bashrc |
|
ENV PATH /miniconda/envs/ttts-fast/bin:$PATH |
|
|
|
|
|
SHELL ["conda", "run", "-n", "ttts-fast", "/bin/bash", "-c"] |
|
|
|
|
|
RUN conda install -y pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 -c pytorch -c nvidia && \ |
|
conda install -c anaconda gdbm && \ |
|
pip install -r requirements.txt |
|
CMD ["python setup.py install"] |
|
|
|
EXPOSE 8501 |
|
|
|
|
|
ENV NAME tortoise |
|
|
|
|
|
RUN ls -al /app |
|
|
|
|
|
CMD ["gradio app.py"] |
|
|
|
|