-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
21f9966
commit e78b5e7
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
.github | ||
.gitignore | ||
tests | ||
.projectile | ||
pylintrc | ||
Dockerfile | ||
*.md | ||
*.in | ||
*.ini | ||
*.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
FROM python:3 AS builder | ||
|
||
WORKDIR /src | ||
|
||
COPY . . | ||
|
||
RUN ./script/setup && ./script/package | ||
|
||
FROM python:3 | ||
|
||
ARG PIPER_VERSION=v1.2.0 | ||
ARG PIPER_ARCH=amd64 | ||
RUN curl -L -s "https://github.com/rhasspy/piper/releases/download/$PIPER_VERSION/piper_$PIPER_ARCH.tar.gz" | tar -zxvf - -C /usr/share | ||
|
||
RUN --mount=type=bind,from=builder,target=/mnt/builder pip3 install /mnt/builder/src/dist/*.whl | ||
|
||
WORKDIR /src | ||
COPY docker-entrypoint.sh . | ||
|
||
EXPOSE 10300/tcp | ||
VOLUME /data | ||
LABEL org.opencontainers.image.source=https://github.com/rhasspy/wyoming-piper | ||
|
||
ENTRYPOINT ["./docker-entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/usr/bin/env bash | ||
python3 -m wyoming_piper \ | ||
--piper '/usr/share/piper/piper' \ | ||
--uri 'tcp://0.0.0.0:10200' \ | ||
--data-dir /data \ | ||
--download-dir /data "$@" |