Files
addons/ada/Dockerfile
Franck Nijhof 69f9872ae7 Update documentation & Dockerfile source locations (#889)
* ada: Fix documentation link

* ada: Adjust source links in Dockerfile

* ada: Update add-on documentation to match current state

* ada: Bump add-on version to 0.9

* ada: Adjust URL to point to repository

* ada: Format YAML with Prettier

* ada: Short build.json
2019-12-18 14:00:53 +01:00

38 lines
856 B
Docker

ARG BUILD_FROM
FROM ${BUILD_FROM}
# Install Ada
WORKDIR /usr/src/ada
ARG ADA_VERSION
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
portaudio19-dev \
libsndfile1 \
mplayer \
libffi-dev \
python3 \
python3-pip \
python3-dev \
git \
build-essential \
\
&& git clone --depth 1 -b ${ADA_VERSION} \
"https://github.com/home-assistant/ada" . \
&& rm -rf .git \
&& pip3 install --no-cache-dir -U setuptools wheel \
&& pip3 install --no-cache-dir -r requirements.txt \
&& pip3 install --no-cache-dir -e . \
&& python3 -m compileall ada \
\
&& apt-get purge -y --auto-remove \
git \
build-essential \
python3-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
COPY data/run.sh /
CMD ["/run.sh"]