faiss/conda/Dockerfile.cuda10.2
Lucas Hosseini 71cc92e437 Fix gpu packages. (#2495)
Summary:
CentOS 8 being EOL, some modifications to the OS packages repositories
are needed in order to keep the build working.

Pull Request resolved: https://github.com/facebookresearch/faiss/pull/2495

Reviewed By: alexanderguzhva

Differential Revision: D39857306

Pulled By: beauby

fbshipit-source-id: 175f436132c589a9a22d93727bb58e556a43a8f6
2022-09-28 07:02:37 -07:00

25 lines
801 B
Docker

# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
FROM nvidia/cuda:10.2-devel-centos8
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
RUN yum update -y --nogpgcheck
RUN yum install -y wget git libcublas-devel-10-2
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh && \
bash Miniconda3-latest-Linux-x86_64.sh -b -p ~/miniconda3
ENV PATH="/root/miniconda3/condabin:${PATH}"
RUN conda install -y -q conda-build anaconda-client
RUN conda config --set anaconda_upload yes
COPY ./ faiss
WORKDIR /faiss/conda