Dockerfile 514 Bytes
Newer Older
chenpangpang's avatar
chenpangpang committed
1
FROM image.sourcefind.cn:5000/dcu/admin/base/pytorch:2.1.0-ubuntu20.04-dtk24.04.1-py3.11
chenpangpang's avatar
chenpangpang committed
2
3
ARG IMAGE=ollama
ARG IMAGE_UPPER=ollama
chenpangpang's avatar
chenpangpang committed
4
ARG BRANCH=dcu
chenpangpang's avatar
chenpangpang committed
5
6
RUN apt-get update && apt-get install -y curl && apt-get clean && \
    rm -rf /var/lib/apt/lists/*
chenpangpang's avatar
chenpangpang committed
7
COPY chenyh/$IMAGE/install.sh chenyh/$IMAGE/ollama  /root/
chenpangpang's avatar
chenpangpang committed
8
9
WORKDIR /root
RUN sh install.sh && rm install.sh
chenpangpang's avatar
chenpangpang committed
10
11
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/