Files
addons/google_assistant/Dockerfile
Eric Matte c41189e93d Add feedback_sound option [add-on: google_assistant] (#1356)
* Add feedback_sound option

* Revert exec command

* Use pulseaudio-utils and add volume option

* Update config.json

* Update feedback doc to a grouped

* Update changelog and version

Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
2020-06-01 12:01:11 +02:00

38 lines
1.0 KiB
Docker

ARG BUILD_FROM
FROM $BUILD_FROM
ARG GOOGLE_GRPC_VERSION
ARG GOOGLE_LIBRARY_VERSION
ARG GOOGLE_SDK_VERSION
ARG GOOGLE_AUTH_VERSION
ARG REQUESTS_OAUTHLIB_VERSION
ARG CHERRYPY_VERSION
# Install packages
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
libportaudio2 \
libasound2-plugins \
pulseaudio-utils \
python3 \
python3-dev \
build-essential \
&& curl --silent --show-error --retry 5 \
"https://bootstrap.pypa.io/get-pip.py" \
| python3 \
&& pip3 install --no-cache-dir \
cherrypy=="${CHERRYPY_VERSION}" \
google-assistant-grpc=="${GOOGLE_GRPC_VERSION}" \
google-assistant-library=="${GOOGLE_LIBRARY_VERSION}" \
google-assistant-sdk=="${GOOGLE_SDK_VERSION}" \
google-auth=="${GOOGLE_AUTH_VERSION}" \
requests_oauthlib=="${REQUESTS_OAUTHLIB_VERSION}" \
&& apt-get remove -y --purge \
python3-dev \
build-essential \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/*
# Copy data
COPY rootfs /