diff --git a/AI/open-webui/1.0/22.03-lts-sp4/Dockerfile b/AI/open-webui/1.0/22.03-lts-sp4/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..41f97f84204c694529520fe1b484b94cae6d2950 --- /dev/null +++ b/AI/open-webui/1.0/22.03-lts-sp4/Dockerfile @@ -0,0 +1,47 @@ +FROM openeuler/openeuler:22.03-lts-sp4 + +WORKDIR /root + +RUN dnf install -y \ + git \ + wget \ + python3-pip + +RUN git clone --branch v0.1.108 https://github.com/open-webui/open-webui.git + +RUN ARCH=$(uname -m) && \ + if [ "$ARCH" = "x86_64" ]; then \ + echo "x86_64 架构" && \ + wget https://nodejs.org/download/release/v18.0.0/node-v18.0.0-linux-x64.tar.gz && \ + tar -xvf node-v18.0.0-linux-x64.tar.gz -C /usr/local && \ + ln -s /usr/local/node-v18.0.0-linux-x64/bin/node /usr/local/bin/node && \ + ln -s /usr/local/node-v18.0.0-linux-x64/bin/npm /usr/local/bin/npm ;\ + elif [ "$ARCH" = "aarch64" ]; then \ + echo "aarch64 架构" && \ + wget https://nodejs.org/download/release/v18.0.0/node-v18.0.0-linux-arm64.tar.gz && \ + tar -xvf node-v18.0.0-linux-arm64.tar.gz -C /usr/local && \ + ln -s /usr/local/node-v18.0.0-linux-arm64/bin/node /usr/local/bin/node && \ + ln -s /usr/local/node-v18.0.0-linux-arm64/bin/npm /usr/local/bin/npm ;\ + else \ + echo "不支持的架构: $ARCH" && exit 1; \ + fi + +WORKDIR /root/open-webui + +RUN npm config set registry https://registry.npmmirror.com/ + +RUN npm i +RUN npm run build + +RUN pip install pydantic -i https://mirrors.aliyun.com/pypi/simple/ + +RUN pip install -r backend/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ + +RUN pip install fastapi_sso \ + transformers \ + accelerate + +ENV HF_ENDPOINT=https://hf-mirror.com + +CMD ["/bin/bash", "-c", "/root/open-webui/backend/start.sh"] + diff --git a/AI/open-webui/README.md b/AI/open-webui/README.md new file mode 100644 index 0000000000000000000000000000000000000000..c0d95195e2d10fdc1bb3146d0940c4f7ed864293 --- /dev/null +++ b/AI/open-webui/README.md @@ -0,0 +1,31 @@ +# open-webui + +# Quick reference + +- The official dlrm docker image. + +- Maintained by: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative) + +- Where to get help: [openEuler CloudNative SIG](https://gitee.com/openeuler/cloudnative), [openEuler](https://gitee.com/openeuler/community) + +# Build reference + +1. Build images and push: +```shell +docker buildx build -t "openeuler/open-webui:$TAG" --platform linux/amd64,linux/arm64 . --push +``` + +We are using `buildx` in here to generate multi-arch images, see more in [Docker Buildx](https://docs.docker.com/buildx/working-with-buildx/) + +2. Run: +```shell +docker run -itd --name openwebui openeuler/open-webui:$TAG +docker exec -it openwebui /bin/bash +``` + +# Supported tags and respective Dockerfile links + +- 1.0-oe2203sp4: open-webui v1.0, openEuler 22.03 LTS SP4 + +## Operating System +Linux/Unix, ARM64 or x86-64 architecture. diff --git a/AI/open-webui/doc/image-info.yml b/AI/open-webui/doc/image-info.yml new file mode 100644 index 0000000000000000000000000000000000000000..31b721ec0d8942ce5a5422f812b37e25e173f497 --- /dev/null +++ b/AI/open-webui/doc/image-info.yml @@ -0,0 +1,51 @@ +name: open-webui +category: ai +description: Open-WebUI service container with preconfigured settings +environment: | + 本应用在Docker环境中运行,安装Docker执行如下命令 + ``` + yum install -y docker + ``` +tags: | + open-webui镜像的Tag由其版本信息和基础镜像版本信息组成,详细内容如下 + + | Tag | Currently | Architectures | + |----------|-------------|------------------| + |[1.0-oe2203sp4](https://gitee.com/openeuler/openeuler-docker-images/blob/master/AI/open-webui/1.0/22.03-lts-sp4/Dockerfile)| open-webui 1.0 on openEuler 22.03-LTS-SP4 | amd64, arm64 | + +download: | + 拉取镜像到本地 + ``` + docker pull openeuler/open-webui:{Tag} + ``` + +usage: | + - 启动容器 + ``` + docker run -itd --name open-webui openeuler/open-webui:{Tag} + ``` + 用户可根据自身需求选择对应版本的{Tag}、容器启动的选项。`open-webui`启动之后,通过`docker exec -it open-webui /bin/bash`进入容器的/opt/open-webui目录,就可以运行open-webui的代码。 + + + - 容器测试 + + 查看运行日志 + ``` + docker logs -f open-webui + ``` + + 使用shell交互 + ``` + docker exec -it open-webui /bin/bash + ``` + +license: MIT license +similar_packages: + - Ollama: 一款非常轻量且易于安装的工具,旨在为开发者提供便捷的语言模型 API 支持。 +dependency: + - python3-pip + - pydantic + - fastapi_sso + - transformers + - accelerate + - npm diff --git a/AI/open-webui/doc/picture/logo.png b/AI/open-webui/doc/picture/logo.png new file mode 100644 index 0000000000000000000000000000000000000000..6a1eb13c8137580d887d91560f84ee1ee4ceec69 --- /dev/null +++ b/AI/open-webui/doc/picture/logo.png @@ -0,0 +1,3747 @@ + + + +backend/open_webui/static/logo.png · Gitee 极速下载/open-webui - Gitee.com + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ +
+
+ + + + +
+
+ +
+
+
+
+ + +
+ + + +
+
+
+ + +
+
+ +
+
+
+ + + + + + + + + +3 + + + +Star +8 + + + +Fork +6 + +
+

+ Gitee 极速下载/open-webui + + +

+
+
+
+ + + + + + + + +
+
+
+
+
+加入 Gitee +
+
+与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :) +
+免费加入 + +
+
+ + +
+ +
+
+ +
+
+
+
+ +
+文件 +
+
+
+
+ + + + + +
+ + + +
+ + + + +
+
+
+ + + + + + + + +
+
+
+ + + + + +
+
+
+
+
+
+此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 +原始仓库: +https://github.com/open-webui/open-webui +
+ +
+ +
+
+ +
+
+克隆/下载 + +
+ + + + +
+
+
+
+ + + + + +
+ + + +
+ + + + +
+ + +
+ + + + + + +
+
+
+
+
+
+ + +logo.png + +5.24 KB +
+
+ + + +
+
+
+
+
+Timothy Jaeryang Baek +提交于 + +2025-01-23 03:19 +08:00 + +. +chore: logo + +
+
+
+
+ +
+ +
+
+
+
Loading...
+
+
+
+ + +
+ + + + + + + +
+ + +
+
+
+ +
+
+
+ +马建仓 AI 助手 +
+
+ +
+
+
+
+
+
+
+
+
+
尝试更多
+
+
代码解读
+
+
+
代码找茬
+
+
+
代码优化
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ + + + +
+
+
+ + + + + + +
+ + + + +
+
+
Python
+
1
+
https://gitee.com/mirrors/open-webui.git
+
git@gitee.com:mirrors/open-webui.git
+
mirrors
+
open-webui
+
open-webui
+
dev
+
+ + + + + + + + + + + + + +
+
+ +
+ +
+
+

搜索帮助

+
+ +
+ + +
+ +
+ + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + diff --git a/AI/open-webui/meta.yml b/AI/open-webui/meta.yml new file mode 100644 index 0000000000000000000000000000000000000000..44dde5938db7935ba6ffa1aef6a1ea54d2c3144a --- /dev/null +++ b/AI/open-webui/meta.yml @@ -0,0 +1,2 @@ +1.0-oe2203sp4: + open-webui/1.0/22.03-lts-sp4/Dockerfile