faiss/.circleci/Dockerfile.cpu
Lucas Hosseini bab6db84e0 Make pytorch available in CircleCI. (#1486)
Summary: Pull Request resolved: https://github.com/facebookresearch/faiss/pull/1486

Reviewed By: wickedfoo

Differential Revision: D24493486

Pulled By: beauby

fbshipit-source-id: 00156213061503ff593b2e9ede062850b23527a9
2020-10-22 21:10:32 -07:00

12 lines
421 B
Docker

FROM cimg/base:stable-20.04
# Install python3, swig, and MKL.
RUN sudo apt-get update && \
sudo apt-get install -y python3-dev python3-pip swig libmkl-dev
# Install recent CMake.
RUN wget -nv -O - https://github.com/Kitware/CMake/releases/download/v3.17.1/cmake-3.17.1-Linux-x86_64.tar.gz | sudo tar xzf - --strip-components=1 -C /usr
# Install numpy/scipy/pytorch for python tests.
RUN pip3 install numpy scipy torch