Files
GenAIExamples/DocIndexRetriever/Dockerfile
XinyaoWa 504228eea2 fix reorg bug (#779)
Signed-off-by: Xinyao Wang <xinyao.wang@intel.com>
2024-09-11 00:00:18 +08:00

31 lines
751 B
Docker

# Copyright (C) 2024 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
FROM python:3.11-slim
RUN apt-get update -y && apt-get install -y --no-install-recommends --fix-missing \
libgl1-mesa-glx \
libjemalloc-dev \
git
RUN useradd -m -s /bin/bash user && \
mkdir -p /home/user && \
chown -R user /home/user/
WORKDIR /home/user/
RUN git clone https://github.com/opea-project/GenAIComps.git
WORKDIR /home/user/GenAIComps
RUN pip install --no-cache-dir --upgrade pip && \
pip install --no-cache-dir -r /home/user/GenAIComps/requirements.txt
COPY ./retrieval_tool.py /home/user/retrieval_tool.py
ENV PYTHONPATH=$PYTHONPATH:/home/user/GenAIComps
USER user
WORKDIR /home/user
ENTRYPOINT ["python", "retrieval_tool.py"]