forked from moroen/IKEA-Tradfri-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
33 lines (25 loc) · 841 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM debian:latest
RUN apt-get update -y && \
apt-get install -y python3 python3-pip git autoconf automake libtool && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* build/
RUN mkdir -p /usr/src/app /usr/src/build
WORKDIR /usr/src/build
RUN python3 -m pip install cython
RUN python3 -m pip install ipython
RUN git clone https://github.com/ggravlingen/pytradfri.git
WORKDIR /usr/src/build/pytradfri
# RUN git checkout tags/2.2.3
WORKDIR /usr/src/build/pytradfri/script
# RUN chmod +x install-aiocoap.sh
# RUN ./install-aiocoap.sh
RUN ./install-coap-client.sh
WORKDIR /usr/src/build/pytradfri
RUN python3 setup.py install
RUN pip3 install twisted
WORKDIR /usr/src/app
COPY tradfri.tac /usr/src/app
COPY configure.py /usr/src/app
COPY adapter_start.sh /usr/src/app
EXPOSE 1234
CMD /usr/src/app/adapter_start.sh