Switch to wyoming and this for the docker container

This commit is contained in:
Ryan Voots 2024-04-23 09:50:43 -04:00
parent 615b846150
commit ec2d0987ac
2 changed files with 13 additions and 10 deletions

View file

@ -1,12 +1,18 @@
FROM nvidia/cuda:12.4.1-devel-ubuntu22.04 FROM nvidia/cuda:12.4.1-devel-ubuntu22.04
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
git-lfs python3 build-essential python3-pip \ git-lfs python3 build-essential python3-pip python3-venv \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
WORKDIR /app WORKDIR /app
COPY requirements.txt . RUN git clone https://github.com/rhasspy/wyoming-openwakeword --depth 1 --single-branch --recurse-submodules -b v1.10.0
RUN pip3 install -r requirements.txt
COPY detect.py . WORKDIR /app/wyoming-openwakeword/
RUN python3 script/setup
WORKDIR /app
COPY requirements.txt .
RUN /app/wyoming-openwakeword/.venv/bin/pip install -r requirements.txt
ENTRYPOINT ["/app/wyoming-openwakeword/.venv/bin/python", "/app/wyoming-openwakeword/script/run"]
CMD [ "python3", "-u", "detect.py", "-c", "/config/config.yaml"]

View file

@ -1,5 +1,2 @@
--find-links https://download.pytorch.org/whl/torch_stable.html tensorflow[and-cuda]
openwakeword @ git+https://github.com/dscripka/openWakeWord@v0.6.0
paho-mqtt==1.6.1
pyyaml==6.0
torch==2.1.0+cu121