diff --git a/chatqna-ui/1.0/24.03-lts/Dockerfile b/chatqna-ui/1.0/24.03-lts/Dockerfile index 5acac708bb0b57f478b2d54ac54b6fbf94a72759..0785b1d4345d0a893fb791d1af1c717ed4063560 100644 --- a/chatqna-ui/1.0/24.03-lts/Dockerfile +++ b/chatqna-ui/1.0/24.03-lts/Dockerfile @@ -8,8 +8,7 @@ FROM openeuler/openeuler:24.03-lts RUN yum update -y && \ yum install -y --setopt=install_weak_deps=False \ git \ - npm \ - git + npm WORKDIR /home/user diff --git a/faqgen-ui/1.0/24.03-lts/Dockerfile b/faqgen-ui/1.0/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..57f3fbde99159c6650548b9f33637a585882b46e --- /dev/null +++ b/faqgen-ui/1.0/24.03-lts/Dockerfile @@ -0,0 +1,28 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +# Use node 20.11.1 as the base image +FROM openeuler/openeuler:24.03-lts + +# Update package manager and install Git +RUN yum update -y && yum install -y git npm + +WORKDIR /home/user + +# Copy the front-end code repository +RUN git clone https://gitee.com/zhihang161013/GenAIExamples.git + +# Set the working directory +WORKDIR /home/user/GenAIExamples/FaqGen/ui/svelte + +# Install front-end dependencies +RUN npm install + +# Build the front-end application +RUN npm run build + +# Expose the port of the front-end application +EXPOSE 5173 + +# Run the front-end application in preview mode +CMD ["npm", "run", "preview", "--", "--port", "5173", "--host", "0.0.0.0"] \ No newline at end of file diff --git a/faqgen-ui/meta.yml b/faqgen-ui/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..a9ddecf59944bce718a14a6648b3027e65e7a9d7 --- /dev/null +++ b/faqgen-ui/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: faqgen-ui/1.0/24.03-lts/Dockerfile + arch: x86_64 \ No newline at end of file diff --git a/faqgen/1.0/24.03-lts/Dockerfile b/faqgen/1.0/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..cce090f5a1884ff2c05b8d838c7fca2bf7186dcb --- /dev/null +++ b/faqgen/1.0/24.03-lts/Dockerfile @@ -0,0 +1,38 @@ + + +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +FROM openeuler/openeuler:24.03-lts + + +RUN yum update -y && yum install -y --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + mesa-libGL \ + jemalloc-devel \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ + +WORKDIR /home/user/ +RUN git clone https://gitee.com/zhihang161013/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 + +WORKDIR /home/user/ +RUN git clone https://gitee.com/zhihang161013/GenAIExamples.git +RUN cp GenAIExamples/FaqGen/faqgen.py . +RUN rm -rf GenAIExamples + +ENV PYTHONPATH=$PYTHONPATH:/home/user/GenAIComps + +USER user + +WORKDIR /home/user + +ENTRYPOINT ["python", "faqgen.py"] diff --git a/faqgen/meta.yml b/faqgen/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..385daeb35730b087c9134ad72a815cd6718620e7 --- /dev/null +++ b/faqgen/meta.yml @@ -0,0 +1,3 @@ +1.0-oe2403lts: + path: faqgen/1.0/24.03-lts/Dockerfile + arch: x86_64 \ No newline at end of file diff --git a/llm-faqgen-tgi-langchain/0.3.7/24.03-lts/Dockerfile b/llm-faqgen-tgi-langchain/0.3.7/24.03-lts/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..51f86ec1ee290aa5a5afaad70140478d68a2beac --- /dev/null +++ b/llm-faqgen-tgi-langchain/0.3.7/24.03-lts/Dockerfile @@ -0,0 +1,32 @@ +# Copyright (C) 2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +FROM openeuler/openeuler:24.03-lts + +RUN yum update -y && yum install -y --setopt=install_weak_deps=False \ + python-pip python \ + shadow-utils \ + mesa-libGL \ + jemalloc-devel \ + git + +RUN useradd -m -s /bin/bash user && \ + mkdir -p /home/user && \ + chown -R user /home/user/ + +USER user + +WORKDIR /home/user/ + +RUN git clone https://gitee.com/zhihang161013/GenAIComps.git && \ + cp -r GenAIComps/comps . && \ + rm -rf GenAIComps + +RUN pip install --no-cache-dir --upgrade pip setuptools && \ + pip install --no-cache-dir -r /home/user/comps/llms/faq-generation/tgi/langchain/requirements.txt + +ENV PYTHONPATH=$PYTHONPATH:/home/user + +WORKDIR /home/user/comps/llms/faq-generation/tgi/langchain + +ENTRYPOINT ["bash", "entrypoint.sh"] diff --git a/llm-faqgen-tgi-langchain/meta.yml b/llm-faqgen-tgi-langchain/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..a79eb6c9fdcd8a5395cffb136ebc9e6bb2ca8c95 --- /dev/null +++ b/llm-faqgen-tgi-langchain/meta.yml @@ -0,0 +1,3 @@ +0.3.7-oe2403lts: + path: llm-faqgen-tgi-langchain/0.3.7/24.03-lts/Dockerfile + arch: x86_64 \ No newline at end of file diff --git a/text-embeddings-inference-cpu/1.5/24.03-lts/Dockerfile b/text-embeddings-inference-cpu/1.5/24.03-lts/Dockerfile index c92e3aa43f45dc4dd797b25e5ca33c7bd0d5d8cb..7fb6efd4f35dbdb848fc0fe838f39fb4e89e2fa2 100644 --- a/text-embeddings-inference-cpu/1.5/24.03-lts/Dockerfile +++ b/text-embeddings-inference-cpu/1.5/24.03-lts/Dockerfile @@ -7,17 +7,17 @@ ENV RUSTC_WRAPPER=/usr/local/bin/sccache RUN yum update -y && \ yum install -y \ --setopt=install_weak_deps=False \ - cargo \ openssl-devel \ gcc \ g++ \ git - RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init && \ +RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -o rustup-init && \ chmod +x rustup-init && \ ./rustup-init -y && \ - rm rustup-init && \ - source $HOME/.cargo/env + rm rustup-init + +ENV PATH="/root/.cargo/bin:$PATH" # Donwload, configure sccache RUN curl -fsSL https://github.com/mozilla/sccache/releases/download/v$SCCACHE/sccache-v$SCCACHE-x86_64-unknown-linux-musl.tar.gz | tar -xzv --strip-components=1 -C /usr/local/bin sccache-v$SCCACHE-x86_64-unknown-linux-musl/sccache && \