Update Dockerfile
Browse files- Dockerfile +6 -6
Dockerfile
CHANGED
|
@@ -7,12 +7,12 @@ WORKDIR /app
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
-
# Pre-download XTTS model
|
| 11 |
-
RUN mkdir -p
|
| 12 |
-
wget -O models/xtts/model.pth https://huggingface.co/coqui/XTTS-v2/resolve/main/model.pth
|
| 13 |
-
wget -O models/xtts/config.json https://huggingface.co/coqui/XTTS-v2/resolve/main/config.json
|
| 14 |
-
wget -O models/xtts/vocab.json https://huggingface.co/coqui/XTTS-v2/resolve/main/vocab.json
|
| 15 |
-
wget -O models/xtts/speakers_xtts.pth https://huggingface.co/coqui/XTTS-v2/resolve/main/speakers_xtts.pth
|
| 16 |
|
| 17 |
ENV COQUI_TOS_AGREED=1
|
| 18 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|
|
|
|
| 7 |
COPY requirements.txt .
|
| 8 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 9 |
|
| 10 |
+
# Pre-download XTTS model (ALL wget lines must be inside ONE RUN block)
|
| 11 |
+
RUN mkdir -p models/xtts && \
|
| 12 |
+
wget -O models/xtts/model.pth https://huggingface.co/coqui/XTTS-v2/resolve/main/model.pth && \
|
| 13 |
+
wget -O models/xtts/config.json https://huggingface.co/coqui/XTTS-v2/resolve/main/config.json && \
|
| 14 |
+
wget -O models/xtts/vocab.json https://huggingface.co/coqui/XTTS-v2/resolve/main/vocab.json && \
|
| 15 |
+
wget -O models/xtts/speakers_xtts.pth https://huggingface.co/coqui/XTTS-v2/resolve/main/speakers_xtts.pth
|
| 16 |
|
| 17 |
ENV COQUI_TOS_AGREED=1
|
| 18 |
ENV GRADIO_SERVER_NAME=0.0.0.0
|