djkesu commited on
Commit
da16777
1 Parent(s): 3bbf2c7

added dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +47 -0
Dockerfile ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use an official Python runtime as a parent image
2
+ FROM nvidia/cuda:11.7.0-base-ubuntu20.04
3
+
4
+ # Set the working directory
5
+ WORKDIR /app
6
+
7
+ # Install git, wget, build-essential
8
+ RUN apt-get update && apt-get install -y git wget build-essential
9
+
10
+ # Install Miniconda
11
+ RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
12
+ bash Miniconda3-latest-Linux-x86_64.sh -b -p /miniconda && \
13
+ rm Miniconda3-latest-Linux-x86_64.sh
14
+ ENV PATH="/miniconda/bin:${PATH}"
15
+
16
+ # Clone the repository
17
+ RUN git clone https://github.com/DjKesu/tortoise-tts-fast-cloning /app/tortoise5c
18
+
19
+ # Change the working directory to the tortoise-tts-fast directory
20
+ WORKDIR /app/tortoise5c
21
+
22
+ # Create the Conda environment
23
+ RUN conda create -n tts5x python=3.8 && \
24
+ echo "source activate tts5x" > ~/.bashrc
25
+ ENV PATH /miniconda/envs/ttts-fast/bin:$PATH
26
+
27
+ # Set the shell for the following commands to use the Conda environment "ttts-fast"
28
+ SHELL ["conda", "run", "-n", "ttts-fast", "/bin/bash", "-c"]
29
+
30
+ # Install the necessary packages
31
+ RUN conda install -y pytorch==1.13.1 torchvision==0.14.1 torchaudio==0.13.1 -c pytorch -c nvidia && \
32
+ conda install -c anaconda gdbm && \
33
+ pip install -e . && \
34
+ pip install git+https://github.com/152334H/BigVGAN.git && \
35
+ pip install streamlit
36
+
37
+ # Make port 8501 available to the world outside this container
38
+ EXPOSE 8501
39
+
40
+ # Define environment variable
41
+ ENV NAME tortoise-tts
42
+
43
+ # List the contents of the /app directory
44
+ RUN ls -al /app
45
+
46
+ # Run the application
47
+ CMD ["streamlit", "run", "app.py"]