Signed-off-by: Chun Tao <chun.tao@intel.com> Signed-off-by: rbrugaro <rita.brugarolas.brufau@intel.com> Signed-off-by: ZePan110 <ze.pan@intel.com> Signed-off-by: Louie Tsai <louie.tsai@intel.com> Signed-off-by: chen, suyue <suyue.chen@intel.com> Co-authored-by: rbrugaro <rita.brugarolas.brufau@intel.com> Co-authored-by: ZePan110 <ze.pan@intel.com> Co-authored-by: kevinintel <hanwen.chang@intel.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Louie Tsai <louie.tsai@intel.com> Co-authored-by: chen, suyue <suyue.chen@intel.com>
34 lines
760 B
Docker
34 lines
760 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 \
|
|
vim \
|
|
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 ./avatarchatbot.py /home/user/avatarchatbot.py
|
|
|
|
ENV PYTHONPATH=$PYTHONPATH:/home/user/GenAIComps
|
|
|
|
USER user
|
|
|
|
WORKDIR /home/user
|
|
|
|
ENTRYPOINT ["python", "avatarchatbot.py"]
|