18 lines
725 B
Plaintext
18 lines
725 B
Plaintext
ARG BUILD_VERSION
|
|
FROM homeassistant/armv7-homeassistant:$BUILD_VERSION
|
|
|
|
RUN apk --no-cache add \
|
|
raspberrypi \
|
|
raspberrypi-libs \
|
|
usbutils \
|
|
&& sed -i "s|# RPi.GPIO|RPi.GPIO|g" /usr/src/homeassistant/requirements_all.txt \
|
|
&& pip3 install --no-cache-dir --no-index --only-binary=:all: --find-links "${WHEELS_LINKS}" \
|
|
RPi.GPIO bluepy pybluez -c /usr/src/homeassistant/requirements_all.txt
|
|
|
|
##
|
|
# Set symlinks for raspberry pi binaries.
|
|
RUN ln -sv /opt/vc/bin/raspistill /usr/local/bin/raspistill \
|
|
&& ln -sv /opt/vc/bin/raspivid /usr/local/bin/raspivid \
|
|
&& ln -sv /opt/vc/bin/raspividyuv /usr/local/bin/raspividyuv \
|
|
&& ln -sv /opt/vc/bin/raspiyuv /usr/local/bin/raspiyuv
|