-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
56 lines (50 loc) · 1.12 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
51
52
53
54
55
56
FROM jsurf/rpi-raspbian:latest
RUN ["cross-build-start"]
RUN apt-get update && \
apt-get install -y \
wget \
unzip \
cmake \
build-essential \
pkg-config \
clang \
libjpeg-dev \
libtiff5-dev \
libjasper-dev \
libpng12-dev \
libavcodec-dev \
libavformat-dev \
libeigen3-dev \
python2.7-dev \
libpython2.7-dev \
python-numpy \
libunicap2-dev \
libv4l-0 \
libv4l-dev \
v4l-utils \
&& \
apt-get clean
# defining compilers
ENV CC /usr/bin/clang
ENV CXX /usr/bin/clang++
RUN cd /tmp && \
wget -q -O opencv.zip https://github.com/Itseez/opencv/archive/3.1.0.zip && \
unzip -q opencv.zip && \
wget -q -O opencv_contrib.zip https://github.com/Itseez/opencv_contrib/archive/3.1.0.zip && \
unzip -q opencv_contrib.zip && \
mkdir opencv-3.1.0/build && \
cd opencv-3.1.0/build && \
cmake \
-D CMAKE_BUILD_TYPE=RELEASE \
-D BUILD_opencv_python2=YES \
-D BUILD_JPEG=YES \
-D WITH_WEBP=NO \
-D WITH_OPENEXR=NO \
-D BUILD_TESTS=NO \
-D BUILD_PERF_TESTS=NO \
.. && \
make -j 4 VERBOSE=1 && \
make && \
make install
RUN ["cross-build-end"]
CMD ["/bin/bash"]