-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
37 lines (33 loc) · 1.08 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
FROM ubuntu:16.04
RUN apt-get update && apt install -y \
g++ \
cmake \
scons \
wget \
python-pip \
libopencv-dev \
libboost-all-dev \
libprotobuf-dev \
libgflags-dev \
libgoogle-glog-dev \
libgtest-dev \
protobuf-compiler \
libprotoc-dev \
git && \
cd /usr/src/gtest && \
cmake -DBUILD_SHARED_LIBS=ON . && \
make && \
mv libg* /usr/lib/ && \
pip install numpy protobuf
RUN wget http://www.vlfeat.org/download/vlfeat-0.9.20-bin.tar.gz && \
tar -xvzf vlfeat-0.9.20-bin.tar.gz && \
mkdir /usr/local/include/vl && mv vlfeat-0.9.20/vl/*.h /usr/local/include/vl && \
mv vlfeat-0.9.20/bin/glnxa64/libvl.so /usr/local/lib/ && \
rm -rf vlfeat*
RUN git clone https://github.com/mariusmuja/flann.git && \
cd flann && git checkout 89fc856d6745c5c96fabff67641b7030e636fe04 && \
touch doc/manual.pdf && \
mkdir build && cd build && cmake -DBUILD_MATLAB_BINDINGS=OFF -DBUILD_PYTHON_BINDINGS=OFF .. && make install && cd && \
rm -rf flann
RUN apt-get remove -y cmake git wget && \
apt-get autoremove -y