-
Notifications
You must be signed in to change notification settings - Fork 60
/
Copy pathDockerfile.cpu
52 lines (45 loc) · 1.38 KB
/
Dockerfile.cpu
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
# https://github.com/plippe/faiss-docker/blob/master/Dockerfile
FROM nvidia/cuda:8.0-devel-ubuntu16.04
ENV FAISS_CPU_OR_GPU "cpu"
ENV FAISS_VERSION "1.3.0"
ENV OPENCV_VERSION "3.4.8"
RUN apt-get update && apt-get install -y curl bzip2 libgl1-mesa-glx
RUN curl https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh > /tmp/conda.sh
RUN bash /tmp/conda.sh -b -p /opt/conda && \
/opt/conda/bin/conda update -n base conda && \
/opt/conda/bin/conda install -y -c pytorch faiss-${FAISS_CPU_OR_GPU}=${FAISS_VERSION} && \
apt-get remove -y --auto-remove curl bzip2 && \
apt-get clean && \
rm -fr /tmp/conda.sh
RUN /opt/conda/bin/conda install -y -c conda-forge opencv=$OPENCV_VERSION
ENV PATH="/opt/conda/bin:${PATH}"
RUN apt-get update -y && \
apt-get install -y \
build-essential \
cmake \
git \
wget \
unzip \
yasm \
pkg-config \
libswscale-dev \
libtbb2 \
libtbb-dev \
libjpeg-dev \
libpng-dev \
libtiff-dev \
libavformat-dev \
libpq-dev \
libopenblas-dev \
liblapack3 \
python-dev \
swig \
git \
python-pip \
tree \
gifsicle \
imagemagick \
libgtk-3-dev \
libboost-all-dev
COPY requirements.txt /home/requirements.txt
RUN pip install -r /home/requirements.txt