Files
addons/snips/Dockerfile
Tod Schmidt d8bbc59e95 0.60.8 (#494)
* 0.58.2

* 0.58.2

* rebase

* rebase

* 0.58.3

* 0.58.3

* cleanup

* Updated to 0.60.8; Containers built from base images

* update snips-entrypoint and build images

* Removed asr-injection (not available)

* Updated CHANGELOG with correct version; Updated to use BUILD_ARCH

* Optimize size of container

* Cleanup & standardize

* Update Dockerfile
2018-12-29 12:58:12 +01:00

35 lines
1.4 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-watch \
&& chmod a+x /run.sh \
&& chmod a+x /usr/bin/customtts.sh \
&& chmod a+x /snips-entrypoint.sh \
&& 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" ]