Skip to content

Commit

Permalink
sync to try on another build machine (FALCONN-LIB#101)
Browse files Browse the repository at this point in the history
  • Loading branch information
sourcesync authored Apr 27, 2023
1 parent 68fa1de commit 8aafc95
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions t3/faiss_t3/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@

FROM nvidia/cuda:11.0-devel-ubuntu18.04

ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"
#FROM nvidia/cuda:11.0-devel-ubuntu18.04
FROM nvidia/cuda:11.0.3-cudnn8-devel-ubuntu18.04

# CONDA

RUN apt-get update && apt-get install -y wget build-essential git

RUN wget \
https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh \
&& mkdir /root/.conda \
&& bash Miniconda3-latest-Linux-x86_64.sh -b \
&& rm -f Miniconda3-latest-Linux-x86_64.sh \
&& conda --version \
&& conda install -c pytorch python=3.6.9 faiss-gpu cudatoolkit=11.0
ENV PATH="/root/miniconda3/bin:${PATH}"
ARG PATH="/root/miniconda3/bin:${PATH}"

RUN apt-get update
RUN apt-get install -y wget
RUN apt-get install -y build-essential
RUN apt-get install -y git
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-py38_23.1.0-1-Linux-x86_64.sh
RUN bash Miniconda3-py38_23.1.0-1-Linux-x86_64.sh -b
RUN rm -f Miniconda3-py38_23.1.0-1-Linux-x86_64.sh
RUN conda --version
RUN conda create -n py38 python=3.8 -y
RUN echo "source activate env" > ~/.bashrc
RUN ls /opt/
ENV PATH /opt/conda/envs/py38/bin:$PATH
RUN conda config --set remote_read_timeout_secs 300
RUN conda install -c pytorch faiss-gpu
#RUN conda install cudatoolkit=11.0
RUN conda --version && which conda && which python && which pip3

# BIGANN
Expand Down

0 comments on commit 8aafc95

Please sign in to comment.