-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
53 lines (41 loc) · 1.18 KB
/
Dockerfile
File metadata and controls
53 lines (41 loc) · 1.18 KB
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
53
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 \
curl \
jq \
alsa-utils \
libasound2-plugins \
libpulse-dev \
pulseaudio-utils \
sox \
swig \
portaudio19-dev \
flac \
gcc \
ffmpeg \
wget \
unzip \
git
COPY . /neon_speech
WORKDIR /neon_speech
# cython included for Nemo package build
RUN pip install --no-cache-dir wheel cython && \
pip install --no-cache-dir .[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 neon-speech install-dependencies
HEALTHCHECK CMD "/opt/neon/healthcheck.sh"
CMD ["/root/run.sh"]
FROM base AS default_model
RUN neon-speech init-plugin