-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
41 lines (33 loc) · 1.02 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
# Pull base image
FROM resin/rpi-raspbian:jessie
MAINTAINER Felix Eckhardt [email protected]
# Install dependencies
RUN apt-get update && apt-get install -y \
vim \
python3 \
python3-dev \
python3-pip \
python3-virtualenv \
python3-wheel \
gcc \
build-essential \
libglib2.0-dev \
bluez \
libbluetooth-dev \
libboost-python-dev \
git \
--no-install-recommends && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install bluepy
RUN pip3 install git+https://github.com/don41382/magicblue
# install wiringPI
RUN git clone git://git.drogon.net/wiringPi
RUN cd wiringPi && ./build
RUN pip3 install pi_switch
# fix library problem for python3 & libboost
RUN mv /usr/lib/arm-linux-gnueabihf/libboost_python-py27.so.1.55.0 /usr/lib/arm-linux-gnueabihf/libboost_python-py27.so.1.55.0-old
RUN ln -s /usr/lib/arm-linux-gnueabihf/libboost_python-py34.so.1.55.0 /usr/lib/arm-linux-gnueabihf/libboost_python-py27.so.1.55.0
# Define working directory
WORKDIR /data
# Define default command
CMD ["bash"]