-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for both GPU and NONGPU Dockerfiles
- Loading branch information
Showing
11 changed files
with
144 additions
and
1 deletion.
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,12 @@ | ||
# OpenWakeWord | ||
/openwakeword-data | ||
|
||
# Piper | ||
/piper-data | ||
|
||
# Porcupine1 | ||
/porcupine1-data | ||
|
||
# Whisper | ||
/whisper-data | ||
|
File renamed without changes.
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,28 @@ | ||
FROM debian:bullseye-slim | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
|
||
# Install openWakeWord | ||
WORKDIR /usr/src | ||
ARG OPENWAKEWORD_LIB_VERSION='1.5.1' | ||
|
||
RUN \ | ||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
python3 \ | ||
python3-pip \ | ||
\ | ||
&& pip3 install --no-cache-dir -U \ | ||
setuptools \ | ||
wheel \ | ||
&& pip3 install --no-cache-dir \ | ||
"wyoming-openwakeword==${OPENWAKEWORD_LIB_VERSION}" \ | ||
\ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR / | ||
COPY run.sh ./ | ||
|
||
EXPOSE 10400 | ||
|
||
ENTRYPOINT ["bash", "/run.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 |
---|---|---|
|
@@ -28,7 +28,7 @@ RUN \ | |
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR / | ||
COPY run.sh ./ | ||
COPY run-gpu.sh ./ | ||
|
||
EXPOSE 10200 | ||
|
||
|
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,34 @@ | ||
FROM debian:bullseye-slim | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
|
||
# Install Piper | ||
WORKDIR /usr/src | ||
ARG PIPER_LIB_VERSION='1.3.2' | ||
ARG PIPER_RELEASE='v1.2.0' | ||
|
||
RUN \ | ||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
curl \ | ||
python3 \ | ||
python3-pip \ | ||
\ | ||
&& pip3 install --no-cache-dir -U \ | ||
setuptools \ | ||
wheel \ | ||
&& pip3 install --no-cache-dir \ | ||
"wyoming-piper==${PIPER_LIB_VERSION}" \ | ||
\ | ||
&& curl -L -s \ | ||
"https://github.com/rhasspy/piper/releases/download/${PIPER_RELEASE}/piper_${TARGETARCH}${TARGETVARIANT}.tar.gz" \ | ||
| tar -zxvf - -C /usr/share \ | ||
\ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR / | ||
COPY run-nongpu.sh ./ | ||
|
||
EXPOSE 10200 | ||
|
||
ENTRYPOINT ["bash", "/run.sh"] |
File renamed without changes.
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 "$@" |
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,32 @@ | ||
FROM nvidia/cuda:12.1.1-cudnn8-runtime-ubuntu22.04 | ||
ARG TARGETARCH | ||
ARG TARGETVARIANT | ||
|
||
# Install porcupine1 | ||
WORKDIR /usr/src | ||
ENV PIP_BREAK_SYSTEM_PACKAGES=1 | ||
|
||
COPY ./src/ ./ | ||
|
||
RUN \ | ||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
python3 \ | ||
python3-pip \ | ||
\ | ||
&& pip3 install --no-cache-dir -U \ | ||
setuptools \ | ||
wheel \ | ||
&& pip3 install --no-cache-dir \ | ||
--extra-index-url https://www.piwheels.org/simple \ | ||
'numpy<1.26' \ | ||
-r requirements.txt \ | ||
\ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR / | ||
COPY run.sh ./ | ||
|
||
EXPOSE 10400 | ||
|
||
ENTRYPOINT ["bash", "/run.sh"] |
File renamed without changes.
File renamed without changes.
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,31 @@ | ||
FROM debian:bullseye-slim | ||
|
||
# Install Whisper | ||
WORKDIR /usr/src | ||
ARG WHISPER_VERSION='1.0.1' | ||
|
||
RUN \ | ||
apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
build-essential \ | ||
python3 \ | ||
python3-dev \ | ||
python3-pip \ | ||
\ | ||
&& pip3 install --no-cache-dir -U \ | ||
setuptools \ | ||
wheel \ | ||
&& pip3 install --no-cache-dir \ | ||
"wyoming-faster-whisper==${WHISPER_VERSION}" \ | ||
\ | ||
&& apt-get purge -y --auto-remove \ | ||
build-essential \ | ||
python3-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
WORKDIR / | ||
COPY run.sh ./ | ||
|
||
EXPOSE 10300 | ||
|
||
ENTRYPOINT ["bash", "/run.sh"] |