Skip to content

Commit 8a298b6

Browse files
authored
Merge pull request #45 from mickdekkers/chore/update-dockerfile
Update Dockerfile
2 parents c9b46be + ff1dced commit 8a298b6

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

docker/Dockerfile

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use an official NVIDIA base image with CUDA support
2-
FROM nvidia/cuda:12.1.0-cudnn8-devel-ubuntu22.04
2+
FROM nvidia/cuda:12.1.1-cudnn8-devel-ubuntu22.04
33

44
# Set label for the docker image description
55
LABEL description="Docker image for xtts-api-server"
@@ -19,11 +19,12 @@ RUN python3 -m pip install --upgrade pip setuptools wheel ninja virtualenv
1919
# WORKDIR /app
2020

2121
# Install Python dependencies
22-
RUN pip install xtts-api-server
2322
RUN pip install torch torchaudio --index-url https://download.pytorch.org/whl/cu121
23+
RUN pip install deepspeed
24+
RUN pip install xtts-api-server
2425

2526
# Expose the container ports
2627
EXPOSE 8020
2728

2829
# Run xtts_api_server when the container starts
29-
CMD ["bash", "-c", "python3 -m xtts_api_server -hs 127.0.0.1 -p 8020 -sf 'xtts-server/speakers' -o 'xtts-server/output' -mf 'xtts-server/models' --deepspeed"]
30+
CMD ["bash", "-c", "python3 -m xtts_api_server --listen -p 8020 -t 'http://localhost:8020' -sf 'xtts-server/speakers' -o 'xtts-server/output' -mf 'xtts-server/models' --deepspeed"]

0 commit comments

Comments
 (0)