21 lines
769 B
Plaintext
21 lines
769 B
Plaintext
ARG BUILD_VERSION
|
|
FROM homeassistant/armv7-homeassistant:$BUILD_VERSION
|
|
|
|
RUN apk --no-cache add usbutils \
|
|
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
|
-c /usr/src/homeassistant/homeassistant/package_constraints.txt \
|
|
bluepy \
|
|
pybluez \
|
|
pygatt[GATTTOOL]
|
|
|
|
# Install GPIO support
|
|
RUN apk add --no-cache --virtual .build-dependencies \
|
|
gcc libc-dev musl-dev \
|
|
&& git clone --depth 1 https://github.com/TinkerBoard/gpio_lib_python /usr/src/gpio \
|
|
&& cd /usr/src/gpio \
|
|
&& sed -i "s/caddr_t/void*/g" source/wiringTB.c \
|
|
&& export MAKEFLAGS="-j$(nproc)" \
|
|
&& pip3 install . \
|
|
&& apk del .build-dependencies \
|
|
&& rm -rf /usr/src/gpio
|