diff --git a/AI/image-list.yml b/AI/image-list.yml index 130feb3a0082e9ca546ec0dda319c683c8d009aa..8d93601284e80ed833afa75d88eeacd99ddbe6e1 100644 --- a/AI/image-list.yml +++ b/AI/image-list.yml @@ -1,4 +1,5 @@ images: + comps-base: opea/comps-base kserve-huggingfaceserver: kserve/huggingfaceserver kserve-controller: kserve/controller kserve-agent: kserve/agent diff --git a/AI/opea/comps-base/1.3/24.03-lts/Dockerfile b/AI/opea/comps-base/1.3/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..608f36f8340b85739dbfa3808dca12d32b7ec377 --- /dev/null +++ b/AI/opea/comps-base/1.3/24.03-lts/Dockerfile @@ -0,0 +1,40 @@ +ARG IMAGE_NAME=openeuler/python +ARG IMAGE_TAG=3.11.13-oe2403lts +ARG VERSION=v1.3 + +FROM ${IMAGE_NAME}:${IMAGE_TAG} AS base + +ARG VERSION +ENV HOME=/home/user + +RUN yum update -y && \ + yum install -y shadow git && \ + yum clean all && \ + rm -rf /var/cache/yum + +RUN useradd -m -s /bin/bash user && \ + mkdir -p $HOME && \ + chown -R user $HOME + +WORKDIR $HOME + +ARG GENAICOMPS_REPO=https://github.com/opea-project/GenAIComps.git +RUN git clone -b $VERSION $GENAICOMPS_REPO && \ + cp -r GenAIComps/*.toml ./ && \ + cp -r GenAIComps/*.py ./ && \ + cp -r GenAIComps/*.txt ./ && \ + cp -r GenAIComps/*.md ./ && \ + cp -r GenAIComps/LICENSE ./ && \ + cp -r GenAIComps/comps ./comps && \ + rm -rf GenAIComps + + +ARG uvpip='uv pip install --system --no-cache-dir' +RUN pip install --no-cache-dir --upgrade pip setuptools uv && \ + $uvpip -r requirements.txt + +ENV PYTHONPATH=$PYTHONPATH:$HOME + +USER user + +ENTRYPOINT ["sh", "-c", "set && ls -la"] \ No newline at end of file diff --git a/AI/opea/comps-base/meta.yml b/AI/opea/comps-base/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..6a20bf645e2996da7471aafbb3235a25ef1d172f --- /dev/null +++ b/AI/opea/comps-base/meta.yml @@ -0,0 +1,3 @@ +1.3-oe2403lts: + path: 1.3/24.03-lts/Dockerfile + arch: x86_64