mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-17 05:04:21 +01:00
* Update to Debian bullseye * Install non-editable Currently editable installation seems to be broken (Python can't find the ada module if installed in editable mode). * Drop ada directory after installation
36 lines
825 B
Docker
36 lines
825 B
Docker
ARG BUILD_FROM
|
|
FROM ${BUILD_FROM}
|
|
|
|
# Install Ada
|
|
WORKDIR /usr/src
|
|
ARG ADA_VERSION
|
|
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
portaudio19-dev \
|
|
libasound2-plugins \
|
|
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" \
|
|
&& pip3 install --no-cache-dir -U setuptools wheel \
|
|
&& pip3 install --no-cache-dir -r ada/requirements.txt \
|
|
&& pip3 install --no-cache-dir ada/ \
|
|
&& rm -rf ada \
|
|
\
|
|
&& apt-get purge -y --auto-remove \
|
|
git \
|
|
build-essential \
|
|
python3-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /
|
|
COPY rootfs /
|