darshankr commited on
Commit
c6681f6
·
verified ·
1 Parent(s): add3ccf

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +13 -16
dockerfile CHANGED
@@ -11,23 +11,20 @@ RUN apt-get update && apt-get install -y \
11
  python3.7-distutils \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
- # Clone repositories
15
- RUN git clone https://github.com/AI4Bharat/Indic-TTS . && \
16
- git clone https://github.com/gokulkarthik/Trainer && \
17
- git clone https://github.com/gokulkarthik/TTS
18
 
19
- # Install Trainer
20
- WORKDIR /app/Trainer
21
- RUN python3 -m pip install -e .[all]
 
 
 
 
 
22
 
23
- # Install TTS
24
- WORKDIR /app/TTS
25
- RUN python3 -m pip install -e .[all]
26
-
27
- # Install project requirements
28
  WORKDIR /app
29
- COPY requirements.txt .
30
- RUN python3 -m pip install -r requirements.txt
31
 
32
- # Set default command
33
- CMD ["python3", "-m", "tts"]
 
11
  python3.7-distutils \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
+ # Copy your application file
15
+ COPY app.py .
 
 
16
 
17
+ # Clone Indic-TTS and install dependencies
18
+ RUN cd Indic-TTS && \
19
+ cd Trainer && \
20
+ python3 -m pip install -e .[all] && \
21
+ cd ../TTS && \
22
+ python3 -m pip install -e .[all] && \
23
+ cd .. && \
24
+ python3 -m pip install -r requirements.txt
25
 
26
+ # Set working directory back to /app
 
 
 
 
27
  WORKDIR /app
 
 
28
 
29
+ # Set default command to run your app
30
+ CMD ["python3", "app.py"]