Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +8 -3
Dockerfile
CHANGED
|
@@ -1,12 +1,17 @@
|
|
| 1 |
-
FROM ghcr.io/coqui-ai/tts
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
COPY web /app/web
|
| 5 |
COPY local_server_new.py /app/
|
| 6 |
COPY requirements.txt /app/
|
|
|
|
|
|
|
| 7 |
|
|
|
|
| 8 |
RUN pip install -r /app/requirements.txt --no-cache-dir
|
| 9 |
-
RUN pip install --force-reinstall TTS -vvv # Force re-install with verbose output
|
| 10 |
|
| 11 |
EXPOSE 5002
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ghcr.io/coqui-ai/tts-cpu
|
| 2 |
|
| 3 |
WORKDIR /app
|
| 4 |
COPY web /app/web
|
| 5 |
COPY local_server_new.py /app/
|
| 6 |
COPY requirements.txt /app/
|
| 7 |
+
COPY speaker_reference.wav /app/audio/speaker_reference.wav # Create audio dir and copy
|
| 8 |
+
# If you have other files in the root that need to be copied, add them here
|
| 9 |
|
| 10 |
+
RUN mkdir -p /app/audio # Ensure /app/audio exists
|
| 11 |
RUN pip install -r /app/requirements.txt --no-cache-dir
|
|
|
|
| 12 |
|
| 13 |
EXPOSE 5002
|
| 14 |
+
EXPOSE 80
|
| 15 |
+
|
| 16 |
+
ENTRYPOINT ["python3"]
|
| 17 |
+
CMD ["TTS/server/server.py", "--model_name", "tts_models/multilingual/multi-dataset-xtts_v2", "--port", "5002"]
|