21 Star 72 Fork 73

openEuler/openeuler-docker-images
关闭

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Dockerfile 1.16 KB
一键复制 编辑 原始数据 按行查看 历史
ARG BASE=openeuler/openeuler:22.03-lts-sp4
FROM ${BASE}
ARG TARGETARCH
ARG BUILDARCH
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 if [ "$TARGETARCH" = "amd64" ]; then \
BUILDARCH="x64"; \
elif [ "$TARGETARCH" = "arm64" ]; then \
BUILDARCH="arm64"; \
fi && \
wget https://nodejs.org/download/release/v18.0.0/node-v18.0.0-linux-${BUILDARCH}.tar.gz && \
tar -xvf node-v18.0.0-linux-${BUILDARCH}.tar.gz -C /usr/local && \
ln -s /usr/local/node-v18.0.0-linux-${BUILDARCH}/bin/node /usr/local/bin/node && \
ln -s /usr/local/node-v18.0.0-linux-${BUILDARCH}/bin/npm /usr/local/bin/npm
WORKDIR /root/open-webui
RUN npm config set registry https://registry.npmmirror.com/ && \
npm i && \
npm run build && \
pip install pydantic -i https://mirrors.aliyun.com/pypi/simple/ && \
pip install -r backend/requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ && \
pip install fastapi_sso \
transformers \
accelerate
ENV HF_ENDPOINT=https://hf-mirror.com
CMD ["/bin/bash", "-c", "/root/open-webui/backend/start.sh"]
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/openeuler/openeuler-docker-images.git
git@gitee.com:openeuler/openeuler-docker-images.git
openeuler
openeuler-docker-images
openeuler-docker-images
master

搜索帮助