Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
ollama
Commits
590823b5
Commit
590823b5
authored
Aug 20, 2024
by
chenpangpang
Browse files
feat: 初始提交
parent
566a5296
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
20 deletions
+5
-20
Dockerfile
Dockerfile
+5
-20
No files found.
Dockerfile
View file @
590823b5
FROM
image.sourcefind.cn:5000/
gp
u/admin/base/
jupyterlab-pytorch:2.2.0-py3.10-cuda12.1-ubuntu22.04-devel as base
FROM
image.sourcefind.cn:5000/
dc
u/admin/base/
pytorch:2.1.0-ubuntu20.04-dtk24.04.1-py3.11
ARG
IMAGE=ollama
ARG
IMAGE_UPPER=ollama
ARG
BRANCH=
gp
u
ARG
BRANCH=
dc
u
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/
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment