Mercurial > code > home > repos > homeauto
diff service/tradfri/Dockerfile @ 1272:298948c177ed
docker setup work but i think this is not functional yet
Ignore-this: 3a295e302214cb868cb252f0748e2b5b
darcs-hash:6c0058fbfe628f36eca0161d17f80363c79b603b
author | drewp <drewp@bigasterisk.com> |
---|---|
date | Sat, 20 Apr 2019 23:45:51 -0700 |
parents | d9c2b59e760d |
children | cd77bcbfd522 |
line wrap: on
line diff
--- a/service/tradfri/Dockerfile Sat Apr 20 23:44:18 2019 -0700 +++ b/service/tradfri/Dockerfile Sat Apr 20 23:45:51 2019 -0700 @@ -2,14 +2,23 @@ WORKDIR /opt -COPY requirements.txt ./ -RUN pip install -r requirements.txt +RUN apt-get install -y autoconf automake libtool +# this is https://github.com/ggravlingen/pytradfri/blob/master/script/install-coap-client.sh +RUN \ +git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git \ +&& cd libcoap \ +&& ./autogen.sh \ +&& ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr" \ +&& make \ +&& make install -COPY pytradfri pytradfri -COPY libcoap libcoap + +COPY requirements.txt ./ +RUN pip3 install -r requirements.txt + COPY static static COPY *.py req* ./ EXPOSE 10009 -CMD [ "python", "./tradfri.py" ] +CMD [ "python3", "./tradfri.py" ]