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

Update dockerfile

Browse files
Files changed (1) hide show
  1. dockerfile +23 -19
dockerfile CHANGED
@@ -1,29 +1,33 @@
1
- # Use a lightweight Python base image
2
  FROM python:3.7-slim
3
 
4
- # Install system packages
 
 
 
5
  RUN apt-get update && apt-get install -y \
6
- python3.7-distutils \
7
- python3-pip \
8
  git \
 
 
9
  && rm -rf /var/lib/apt/lists/*
10
 
11
- # Set the working directory
12
- WORKDIR /app
13
-
14
- # Copy your code and dependencies
15
- COPY requirements.txt ./
16
- RUN pip install --no-cache-dir -r requirements.txt
17
 
18
- # Install Trainer and TTS from source
19
- RUN pip install -e /app/Trainer[all] \
20
- && pip install -e /app/TTS[all]
21
 
22
- # Copy your application code
23
- COPY . .
 
24
 
25
- # Expose the port (for FastAPI)
26
- EXPOSE 8000
 
 
27
 
28
- # Command to run your application (FastAPI example)
29
- CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"]
 
1
+ # Use Python 3.7 as base image
2
  FROM python:3.7-slim
3
 
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install system dependencies
8
  RUN apt-get update && apt-get install -y \
 
 
9
  git \
10
+ python3-pip \
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"]