Update Dockerfile
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
|
@@ -2,10 +2,15 @@ FROM python:3.10
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
-
#
|
| 6 |
ENV COQUI_TOS_AGREED=1
|
| 7 |
|
| 8 |
COPY requirements.txt .
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 10 |
|
| 11 |
COPY . .
|
|
|
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
|
| 5 |
+
# Accept license
|
| 6 |
ENV COQUI_TOS_AGREED=1
|
| 7 |
|
| 8 |
COPY requirements.txt .
|
| 9 |
+
|
| 10 |
+
# 🔥 Upgrade pip first (important)
|
| 11 |
+
RUN pip install --upgrade pip
|
| 12 |
+
|
| 13 |
+
# Install dependencies
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
COPY . .
|