Mercurial > code > home > repos > homeauto
comparison 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 |
comparison
equal
deleted
inserted
replaced
1271:398bd2b2490c | 1272:298948c177ed |
---|---|
1 FROM bang6:5000/base_x86 | 1 FROM bang6:5000/base_x86 |
2 | 2 |
3 WORKDIR /opt | 3 WORKDIR /opt |
4 | 4 |
5 RUN apt-get install -y autoconf automake libtool | |
6 # this is https://github.com/ggravlingen/pytradfri/blob/master/script/install-coap-client.sh | |
7 RUN \ | |
8 git clone --depth 1 --recursive -b dtls https://github.com/home-assistant/libcoap.git \ | |
9 && cd libcoap \ | |
10 && ./autogen.sh \ | |
11 && ./configure --disable-documentation --disable-shared --without-debug CFLAGS="-D COAP_DEBUG_FD=stderr" \ | |
12 && make \ | |
13 && make install | |
14 | |
15 | |
5 COPY requirements.txt ./ | 16 COPY requirements.txt ./ |
6 RUN pip install -r requirements.txt | 17 RUN pip3 install -r requirements.txt |
7 | 18 |
8 COPY pytradfri pytradfri | |
9 COPY libcoap libcoap | |
10 COPY static static | 19 COPY static static |
11 COPY *.py req* ./ | 20 COPY *.py req* ./ |
12 | 21 |
13 EXPOSE 10009 | 22 EXPOSE 10009 |
14 | 23 |
15 CMD [ "python", "./tradfri.py" ] | 24 CMD [ "python3", "./tradfri.py" ] |