-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
29 lines (25 loc) · 923 Bytes
/
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
FROM python:3
ARG CMAKE_VERSION=3.10.3
RUN git clone https://github.com/shuichiro-makigaki/exmachina.git
WORKDIR /exmachina
RUN pip install -r requirements.txt
RUN dvc get . knn_index/small
RUN ln -s small/* .
RUN dvc get . knn_index/medium
RUN ln -s medium/* .
WORKDIR /usr/local/src
RUN apt-get update
RUN apt-get -y install libhdf5-dev liblz4-dev
ADD https://cmake.org/files/v3.10/cmake-${CMAKE_VERSION}-Linux-x86_64.sh .
RUN chmod +x cmake-${CMAKE_VERSION}-Linux-x86_64.sh
RUN ./cmake-${CMAKE_VERSION}-Linux-x86_64.sh --skip-license --prefix=/usr/local
RUN git clone https://github.com/mariusmuja/flann
WORKDIR /usr/local/src/flann
RUN mkdir build
WORKDIR /usr/local/src/flann/build
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DBUILD_MATLAB_BINDINGS=OFF -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_DOC=OFF ..
RUN make
RUN make install
WORKDIR /exmachina
ENTRYPOINT [ "python", "exmachina.py" ]
CMD [ "--help" ]