Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
3 contributors

Users who have contributed to this file

@pvizeli @mjrider @frenck
57 lines (51 sloc) 1.57 KB
ARG BUILD_FROM
FROM $BUILD_FROM
# Set shell
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
# Install deCONZ dependencies
ARG BUILD_ARCH
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
curl \
iproute2 \
iputils-ping \
kmod \
libcap2-bin \
libqt5core5a \
libqt5gui5 \
libqt5network5 \
libqt5serialport5 \
libqt5sql5 \
libqt5websockets5 \
libqt5widgets5 \
lsof \
netcat \
sqlite3 \
tigervnc-common \
tigervnc-standalone-server \
wget \
wmii \
xfonts-base \
xfonts-scalable \
&& rm -rf /var/lib/apt/lists/* \
&& if [ "${BUILD_ARCH}" = "armhf" ] || [ "${BUILD_ARCH}" = "aarch64" ]; \
then \
curl -q -L -o /wiringpi.deb https://unicorn.drogon.net/wiringpi-2.46-1.deb \
&& dpkg -i /wiringpi.deb \
&& rm -rf /wiringpi.deb; \
fi
# Install deCONZ
ARG DECONZ_VERSION
RUN if [ "${BUILD_ARCH}" = "armhf" ] || [ "${BUILD_ARCH}" = "aarch64" ]; \
then \
curl -q -L -o /deconz.deb https://www.dresden-elektronik.de/rpi/deconz/beta/deconz-${DECONZ_VERSION}-qt5.deb; \
else \
curl -q -L -o /deconz.deb https://www.dresden-elektronik.de/deconz/ubuntu/beta/deconz-${DECONZ_VERSION}-qt5.deb; \
fi \
&& dpkg -i /deconz.deb \
&& rm -f /deconz.deb \
&& chown root:root /usr/bin/deCONZ* \
&& sed -i 's/\/root/\/data/' /etc/passwd
COPY data/run.sh data/discovery.sh /
COPY data/ika-otau-dl.sh /bin/
CMD ["/run.sh"]
You can’t perform that action at this time.