-
Notifications
You must be signed in to change notification settings - Fork 204
/
Dockerfile
50 lines (39 loc) · 1.28 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
49
50
FROM resin/raspberry-pi-python:2.7-slim
ENV INITSYSTEM on
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
curl \
libfreetype6-dev \
libpng12-dev \
libzmq3-dev \
pkg-config \
rsync \
libffi-dev \
libjpeg-dev \
libprotobuf-dev \
protobuf-compiler \
libleveldb-dev \
python-picamera \
libblas-dev \
liblapack-dev \
gfortran \
python-numpy \
git \
libcairo2-dev \
unzip \
cups \
libcups2-dev \
libcupsimage2-dev
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
ADD raspi_install/raspi-requirements.txt .
RUN sudo pip --no-cache-dir install -r raspi-requirements.txt --no-deps
RUN git clone git://git.drogon.net/wiringPi && cd wiringPi && ./build
RUN sudo pip install wiringpi2
RUN cd ~/ && git clone https://github.com/adafruit/zj-58 && cd zj-58 && make && sudo ./install \
&& sudo lpadmin -p ZJ-58 -E -v serial:/dev/ttyUSB0?baud=9600 -m zjiang/ZJ-58.ppd \
&& sudo lpoptions -d ZJ-58
ADD raspi_install/tensorflow-1.4.0-cp27-none-any.whl .
RUN sudo pip install tensorflow-1.4.0-cp27-none-any.whl --no-deps
COPY raspi_install/startup.sh /
ENTRYPOINT ["/startup.sh"]