-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (42 loc) · 1.13 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
FROM balenalib/raspberry-pi:stretch
# Update sources and install some basics
RUN apt-get update &&\
apt-get install -y \
wget \
nano
# Install Python 3.6.8, needed for fauxmo
RUN apt-get install -y \
build-essential \
tk-dev \
libncurses5-dev \
libncursesw5-dev \
libreadline6-dev \
libdb5.3-dev \
libgdbm-dev \
libsqlite3-dev \
libssl-dev \
libbz2-dev \
libexpat1-dev \
liblzma-dev \
zlib1g-dev \
libffi-dev &&\
cd /tmp &&\
wget https://www.python.org/ftp/python/3.6.8/Python-3.6.8.tgz &&\
tar zxf Python-3.6.8.tgz &&\
cd Python-3.6.8 &&\
./configure &&\
make -j 4 &&\
make install &&\
# Make it the default
ln -sfn $(which python3.6) $(which python3)
# Install wirinpi for testing
RUN apt=get install -y \
wirinpi
# Install our dependencies
RUN python3.6 -m pip install --upgrade pip setuptools wheel &&\
python3.6 -m pip install RPi.GPIO &&\
python3.6 -m pip install numpy &&\
python3.6 -m pip install fauxmo
WORKDIR /usr/local/src/iron-gauntlet/
COPY * /usr/local/src/iron-gauntlet/
CMD [ "fauxmo", "-c", "IronGauntlet.json", "-v" ]