mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
* Add the hotword detected toptic to out, following https://docs.snips.ai/reference/hermes * Updated to 0.63.2 and pinned that version in dockerfile. Added hotword detected topic to out * Fix arguments * add image entry * Add audio-server to version list * fix packeges installed * Revert file permissions * 755 executables * 755 shell scripts
48 lines
1.6 KiB
Docker
48 lines
1.6 KiB
Docker
ARG BUILD_FROM
|
|
FROM $BUILD_FROM
|
|
|
|
# Copy data
|
|
COPY run.sh /
|
|
COPY mosquitto.conf /etc/
|
|
COPY customtts.sh /usr/bin
|
|
COPY snips-entrypoint.sh /
|
|
|
|
ARG BUILD_ARCH
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
dirmngr \
|
|
apt-utils \
|
|
apt-transport-https \
|
|
unzip \
|
|
supervisor \
|
|
mpg123 \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& if [ "$BUILD_ARCH" = "amd64" ]; \
|
|
then \
|
|
bash -c 'echo "deb https://debian.snips.ai/stretch stable main" > /etc/apt/sources.list.d/snips.list' \
|
|
&& apt-key adv --keyserver pgp.surfnet.nl --recv-keys F727C778CCB0A455; \
|
|
else \
|
|
bash -c 'echo "deb https://raspbian.snips.ai/stretch stable main" > /etc/apt/sources.list.d/snips.list' \
|
|
&& apt-key adv --keyserver pgp.surfnet.nl --recv-keys D4F50CDCA10A2849; \
|
|
fi
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
snips-platform-voice=0.63.2 \
|
|
snips-asr=0.63.2 \
|
|
snips-injection=0.63.2 \
|
|
snips-watch=0.63.2 \
|
|
mosquitto \
|
|
snips-audio-server=0.63.2 \
|
|
snips-dialogue=0.63.2 \
|
|
snips-hotword=0.63.2 \
|
|
snips-nlu=0.63.2 \
|
|
snips-tts=0.63.2 \
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
&& curl -L -o /assistant_Hass_de.zip https://s3.amazonaws.com/hassio-addons-data/assistant_Hass_de.zip \
|
|
&& curl -L -o /assistant_Hass_en.zip https://s3.amazonaws.com/hassio-addons-data/assistant_Hass_en.zip \
|
|
&& curl -L -o /assistant_Hass_fr.zip https://s3.amazonaws.com/hassio-addons-data/assistant_Hass_fr.zip
|
|
|
|
ENTRYPOINT [ "/run.sh" ]
|