From bd44a662dd7e9aba94937b6b8d87262582476235 Mon Sep 17 00:00:00 2001 From: Niaz <tigrexspalterlp@gmail.com> Date: Wed, 25 Aug 2021 08:49:24 +0200 Subject: [PATCH] Try to install it from pip but a newer version --- backend/dependencies/Dockerfile | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/backend/dependencies/Dockerfile b/backend/dependencies/Dockerfile index dc7a8bf..b3fb2f1 100644 --- a/backend/dependencies/Dockerfile +++ b/backend/dependencies/Dockerfile @@ -84,13 +84,14 @@ RUN git clone https://github.com/davisking/dlib.git && \ python setup.py install --no USE_AVX_INSTRUCTIONS --no DLIB_USE_CUDA --no USE_SSE4_INSTRUCTIONS #Build and install faiss. Needs to be build for ARM -WORKDIR /faiss -RUN git clone https://github.com/facebookresearch/faiss.git /faiss -RUN cmake -B build . -DCMAKE_BUILD_TYPE=Release -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=ON -DFAISS_OPT_LEVEL=generic -RUN make -C build -j faiss -RUN make -C build -j swigfaiss -RUN (cd build/faiss/python && python setup.py install) +#WORKDIR /faiss +#RUN git clone https://github.com/facebookresearch/faiss.git /faiss +#RUN cmake -B build . -DCMAKE_BUILD_TYPE=Release -DFAISS_ENABLE_GPU=OFF -DFAISS_ENABLE_PYTHON=ON -DFAISS_OPT_LEVEL=generic +#RUN make -C build -j faiss +#RUN make -C build -j swigfaiss +#RUN (cd build/faiss/python && python setup.py install) # install unzip -RUN apt install -y unzip +#RUN apt install -y unzip # unzip faiss to actually installed it... -RUN unzip /usr/local/lib/python3.9/dist-packages/faiss*.egg -d /usr/local/lib/python3.9/dist-packages/ +#RUN unzip /usr/local/lib/python3.9/dist-packages/faiss*.egg -d /usr/local/lib/python3.9/dist-packages/ +RUN pip install faiss-cpu -- GitLab