Skip to content

Commit a65bb40

Browse files
authored
Add docker-compose.yml
1 parent 8d20bd2 commit a65bb40

File tree

3 files changed

+24
-4
lines changed

3 files changed

+24
-4
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,8 @@ RUN \
8989
FROM nvidia/cuda:11.8.0-cudnn8-runtime-ubuntu22.04 AS dist
9090

9191
ENV PYTHONUNBUFFERED=1
92-
ENV PATH="/bin:$PATH"
92+
ENV LD_LIBRARY_PATH="/app/lib:/usr/local/cuda-11.8/targets/x86_64-linux/lib:${LD_LIBRARY_PATH}"
93+
ENV PATH="/app/bin:${PATH}"
9394

9495
RUN \
9596
mkdir -p /data /app &&\

docker-compose.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
services:
2+
wyoming-piper:
3+
image: slackr31337/wyoming-piper-gpu:latest
4+
container_name: wyoming-piper
5+
environment:
6+
- PIPER_VOICE="en_US-lessac-medium"
7+
ports:
8+
- 10300:10300
9+
volumes:
10+
- /path/to/persistent/data:/data
11+
restart: unless-stopped
12+
runtime: nvidia
13+
deploy:
14+
resources:
15+
reservations:
16+
devices:
17+
- driver: nvidia
18+
count: 1
19+
capabilities:
20+
- gpu
21+
- utility
22+
- compute

run.sh

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
#!/usr/bin/env bash
22

3-
export LD_LIBRARY_PATH=/app/lib/:/usr/local/cuda-11.8/targets/x86_64-linux/lib:$LD_LIBRARY_PATH
4-
53
# Run wyoming-piper server
6-
source /app/bin/activate
74
/app/bin/python3 -m wyoming_piper \
85
--piper '/app/piper/piper' \
96
--uri 'tcp://0.0.0.0:10200' \

0 commit comments

Comments
 (0)