-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathDockerfile
51 lines (40 loc) · 1.21 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
FROM python:3.10-slim as base
LABEL vendor=neon.ai \
ai.neon.name="neon-audio"
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 \
gpg
RUN curl https://forslund.github.io/mycroft-desktop-repo/mycroft-desktop.gpg.key | \
gpg --no-default-keyring --keyring gnupg-ring:/etc/apt/trusted.gpg.d/mycroft-desktop.gpg --import - && \
chmod a+r /etc/apt/trusted.gpg.d/mycroft-desktop.gpg && \
echo "deb http://forslund.github.io/mycroft-desktop-repo bionic main" \
> /etc/apt/sources.list.d/mycroft-mimic.list
RUN apt update && \
apt install -y \
alsa-utils \
libasound2-plugins \
pulseaudio-utils \
sox \
libsox-fmt-mp3 \
vlc \
ffmpeg \
mimic \
gcc \
g++ \
libsndfile1 \
espeak-ng \
git # Added to handle installing plugins from git
ADD . /neon_audio
WORKDIR /neon_audio
RUN pip install wheel && \
pip install .[docker] --extra-index-url https://download.pytorch.org/whl/cpu
COPY docker_overlay/ /
RUN chmod ugo+x /root/run.sh
RUN neon-audio install-dependencies
CMD ["/root/run.sh"]
FROM base as default_model
RUN neon-audio init-plugin