-
Notifications
You must be signed in to change notification settings - Fork 5
/
Dockerfile
52 lines (39 loc) · 1.1 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM python:3.10-slim as base
LABEL vendor=neon.ai \
ai.neon.name="neon-speech"
ENV OVOS_CONFIG_BASE_FOLDER neon
ENV OVOS_CONFIG_FILENAME neon.yaml
ENV XDG_CONFIG_HOME /config
RUN apt-get update && \
apt-get install -y \
alsa-utils \
libasound2-plugins \
libpulse-dev \
pulseaudio-utils \
sox \
swig \
portaudio19-dev \
flac \
gcc \
ffmpeg \
wget \
unzip \
git
ADD . /neon_speech
WORKDIR /neon_speech
# cython included for Nemo package build
RUN pip install wheel cython && \
pip install .[docker] --extra-index-url https://download.pytorch.org/whl/cpu
# Get vosk model for WW detection
RUN mkdir -p /root/.local/share/neon && \
cd /root/.local/share/neon && \
wget -q -O vosk-model-small-en-us-0.15.zip https://alphacephei.com/vosk/models/vosk-model-small-en-us-0.15.zip && \
unzip vosk-model-small-en-us-0.15.zip && \
rm vosk-model-small-en-us-0.15.zip
COPY docker_overlay/ /
RUN chmod ugo+x /root/run.sh
RUN pip list
RUN neon-speech install-dependencies
CMD ["/root/run.sh"]
FROM base as default_model
RUN neon-speech init-plugin