Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
|
@@ -4,12 +4,13 @@ FROM python:3.7-slim
|
|
| 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 |
-
|
| 12 |
-
|
|
|
|
| 13 |
|
| 14 |
# Copy your application file
|
| 15 |
COPY app.py .
|
|
@@ -27,4 +28,4 @@ RUN cd Indic-TTS && \
|
|
| 27 |
WORKDIR /app
|
| 28 |
|
| 29 |
# Set default command to run your app
|
| 30 |
-
CMD ["python3", "app.py"]
|
|
|
|
| 4 |
# Set working directory
|
| 5 |
WORKDIR /app
|
| 6 |
|
| 7 |
+
# Install system dependencies and ensure distutils
|
| 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 your application file
|
| 16 |
COPY app.py .
|
|
|
|
| 28 |
WORKDIR /app
|
| 29 |
|
| 30 |
# Set default command to run your app
|
| 31 |
+
CMD ["python3", "app.py"]
|