-
Notifications
You must be signed in to change notification settings - Fork 33
/
Dockerfile
27 lines (21 loc) · 714 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
FROM nvidia/cuda:8.0-devel-ubuntu16.04
RUN apt-get update -y && \
apt-get install -y \
curl git libssl-dev libopenblas-dev
ENV BLASLDFLAGS /usr/lib/libopenblas.so.0
# cmake
RUN curl https://cmake.org/files/v3.11/cmake-3.11.4-Linux-x86_64.sh -o /tmp/curl-install.sh \
&& chmod u+x /tmp/curl-install.sh \
&& mkdir /usr/bin/cmake \
&& /tmp/curl-install.sh --skip-license --prefix=/usr/bin/cmake \
&& rm /tmp/curl-install.sh
ENV PATH="/usr/bin/cmake/bin:${PATH}"
WORKDIR /builder
COPY . .
RUN mkdir build
WORKDIR /builder/build
RUN cmake ..
RUN make
ENV LD_LIBRARY_PATH $LD_LIBRARY_PATH:/builder/build/faiss/src/faiss
ENTRYPOINT ["/builder/build/bin/faiss_server"]
CMD ["--help"]