Files
tellstick-addon/tellstick/Dockerfile
Pascal Vizeli aaa1282d02 Update branch of add-ons with armv7 (#538)
* Update branch of add-ons with armv7

* update configurator

* Fix docker file

* Update docker files

* fix image

* Update

* certbot
2019-03-10 17:09:35 +01:00

27 lines
993 B
Docker

ARG BUILD_FROM
FROM $BUILD_FROM
ENV LANG C.UTF-8
# Install Telldus library for TellStick (using same approach as in hassio docker installation)
RUN apk add --no-cache \
confuse libftdi1 libstdc++ socat \
&& apk add --no-cache --virtual .build-dependencies \
cmake build-base gcc doxygen confuse-dev argp-standalone libftdi1-dev git \
&& ln -s /usr/include/libftdi1/ftdi.h /usr/include/ftdi.h \
&& mkdir -p /usr/src \
&& cd /usr/src \
&& git clone -b master --depth 1 https://github.com/telldus/telldus \
&& cd telldus/telldus-core \
&& sed -i "/\<sys\/socket.h\>/a \#include \<sys\/select.h\>" common/Socket_unix.cpp \
&& cmake . -DBUILD_LIBTELLDUS-CORE=ON -DBUILD_TDADMIN=OFF -DBUILD_TDTOOL=ON -DGENERATE_MAN=OFF -DFORCE_COMPILE_FROM_TRUNK=ON -DFTDI_LIBRARY=/usr/lib/libftdi1.so \
&& make \
&& make install \
&& apk del .build-dependencies \
&& rm -rf /usr/src/telldus
# Copy data for add-on
COPY run.sh /
CMD [ "/run.sh" ]