i want to use multi stage build in docker. the first stage is to install faiss library, and the second stage is to install the main images. here is my script
FROM conda/miniconda3 as install_faiss
WORKDIR /app
RUN conda install -c conda-forge faiss-cpu
FROM python:3.7.11 as base
WORKDIR /app
COPY requirements.txt ./app/requirements.txt
COPY data_train.csv ./app/data_train.csv
COPY train.py ./app/train.py
RUN pip3 install -qr ./app/requirements.txt
COPY --from=install_faiss ./app ./app
RUN python3 ./app/train.py
but after that in may file train.py error getting like cannot import faiss, so i assume that module faiss not copy in the second image. any help ? thanks