Update Dockerfile
Browse files- Dockerfile +11 -11
Dockerfile
CHANGED
|
@@ -1,23 +1,23 @@
|
|
| 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 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 12 |
-
python3 -m ensurepip --upgrade && \
|
| 13 |
-
python3 -m pip install setuptools
|
| 14 |
|
| 15 |
-
# Copy
|
| 16 |
-
COPY
|
| 17 |
|
| 18 |
-
#
|
| 19 |
-
RUN
|
| 20 |
-
|
|
|
|
|
|
|
| 21 |
python3 -m pip install -e .[all] && \
|
| 22 |
cd ../TTS && \
|
| 23 |
python3 -m pip install -e .[all] && \
|
|
@@ -27,5 +27,5 @@ RUN cd Indic-TTS && \
|
|
| 27 |
# Set working directory back to /app
|
| 28 |
WORKDIR /app
|
| 29 |
|
| 30 |
-
# Set default command to run your app
|
| 31 |
CMD ["python3", "app.py"]
|
|
|
|
| 1 |
# Use Python 3.7 as base image
|
| 2 |
FROM python:3.7-slim
|
| 3 |
|
| 4 |
+
# Set the working directory inside the container
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Install system dependencies
|
| 8 |
RUN apt-get update && apt-get install -y \
|
| 9 |
git \
|
| 10 |
python3-pip \
|
| 11 |
+
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
| 12 |
|
| 13 |
+
# Copy the entire project, including the Indic-TTS directory, into the container
|
| 14 |
+
COPY . /app
|
| 15 |
|
| 16 |
+
# Verify that the Indic-TTS directory exists
|
| 17 |
+
RUN ls -al /app/Indic-TTS
|
| 18 |
+
|
| 19 |
+
# Install dependencies for Trainer and TTS
|
| 20 |
+
RUN cd /app/Indic-TTS/Trainer && \
|
| 21 |
python3 -m pip install -e .[all] && \
|
| 22 |
cd ../TTS && \
|
| 23 |
python3 -m pip install -e .[all] && \
|
|
|
|
| 27 |
# Set working directory back to /app
|
| 28 |
WORKDIR /app
|
| 29 |
|
| 30 |
+
# Set the default command to run your app
|
| 31 |
CMD ["python3", "app.py"]
|