Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix For T3 Docker Build Issues #101

Merged
merged 2 commits into from
Apr 27, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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