Commit 590823b5 authored by chenpangpang's avatar chenpangpang
Browse files

feat: 初始提交

parent 566a5296
FROM image.sourcefind.cn:5000/gpu/admin/base/jupyterlab-pytorch:2.2.0-py3.10-cuda12.1-ubuntu22.04-devel as base
FROM image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-ubuntu20.04-dtk24.04.1-py3.11
ARG IMAGE=ollama
ARG IMAGE_UPPER=ollama
ARG BRANCH=gpu
ARG BRANCH=dcu
RUN apt-get update && apt-get install -y curl && apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY chenyh/$IMAGE/install.sh chenyh/$IMAGE/ollama chenyh/$IMAGE/node-v20.16.0-linux-x64.tar.xz /root/
COPY chenyh/$IMAGE/install.sh chenyh/$IMAGE/ollama /root/
WORKDIR /root
RUN sh install.sh && rm install.sh
RUN /opt/conda/bin/conda create --name open-webui-env python=3.11 open-webui -y && \
/opt/conda/bin/conda clean --all -f && pip install open-webui
#RUN apt-get purge -y nodejs npm --auto-remove
#RUN tar xf node-v20.16.0-linux-x64.tar.xz -C /usr/local/
#RUN ln -sfv /usr/local/node-v20.16.0-linux-x64/bin/node /usr/bin/node && \
# ln -sfv /usr/local/node-v20.16.0-linux-x64/bin/node /usr/local/bin/node && \
# ln -sfv /usr/local/node-v20.16.0-linux-x64/bin/npm /usr/bin/npm && \
# ln -sfv /usr/local/node-v20.16.0-linux-x64/bin/npm /usr/local/bin/npm
#
#
#RUN git clone http://developer.hpccube.com/codes/chenpangpang/open-webui.git
#RUN cd open-webui/ && cp -RPp .env.example .env && \
# npm config set registry https://registry.npmmirror.com && \
# npm install --verbose && npm run build && cd ./backend && pip install -r requirements.txt
\ No newline at end of file
RUN pip install --index-url https://pypi.tuna.tsinghua.edu.cn/simple open-webui jupyter
RUN mkdir -p /opt/conda/bin/ && cp /usr/local/bin/jupyter /opt/conda/bin/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment