Update dockerfile
Browse files- 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 |
-
#
|
| 15 |
-
|
| 16 |
-
git clone https://github.com/gokulkarthik/Trainer && \
|
| 17 |
-
git clone https://github.com/gokulkarthik/TTS
|
| 18 |
|
| 19 |
-
#
|
| 20 |
-
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
-
#
|
| 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", "
|
|
|
|
| 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"]
|