mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
* Adding snips-injection - Update dockerfile - Snips injection version print - Start snips-injection in run - Versionbump to 5.2 * remove backtick accident * Less run blocks * format change in snips dockerfile * Update CHANGELOG.md
32 lines
1.3 KiB
Docker
32 lines
1.3 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 dirmngr apt-utils apt-transport-https jq unzip supervisor mpg123 curl tzdata \
|
|
&& 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 snips-platform-voice snips-asr snips-injection snips-watch \
|
|
&& 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" ]
|