zhengr commited on
Commit
059f166
1 Parent(s): 508a561

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -6
Dockerfile CHANGED
@@ -1,5 +1,7 @@
1
  # 使用基础镜像 ollama/ollama:latest
2
- FROM ollama/ollama
 
 
3
 
4
  # 执行 apt 更新和安装 python3 和 pip3
5
  RUN apt update && apt install -y python3 && apt install -y python3-pip
@@ -8,11 +10,6 @@ RUN apt update && apt install -y python3 && apt install -y python3-pip
8
  RUN pip3 install litellm
9
  RUN pip3 install 'litellm[proxy]'
10
 
11
- RUN curl -fsSL https://ollama.com/install.sh | sh
12
-
13
- RUN echo "Pulling"
14
- RUN /bin/ollama pull mistral:instruct
15
-
16
  # 设置启动命令(踩坑记录:CMD无法覆盖ollama/ollama镜像的ENTRYPOINT,导致一致报错,改用ENTRYPOINT就可以解决)
17
  # CMD ["litellm", "--model", "ollama/deepseek-llm:67b-chat"]
18
  # 设置ENTRYPOINT
 
1
  # 使用基础镜像 ollama/ollama:latest
2
+ FROM ollama/ollama:latest
3
+
4
+ RUN ollama list
5
 
6
  # 执行 apt 更新和安装 python3 和 pip3
7
  RUN apt update && apt install -y python3 && apt install -y python3-pip
 
10
  RUN pip3 install litellm
11
  RUN pip3 install 'litellm[proxy]'
12
 
 
 
 
 
 
13
  # 设置启动命令(踩坑记录:CMD无法覆盖ollama/ollama镜像的ENTRYPOINT,导致一致报错,改用ENTRYPOINT就可以解决)
14
  # CMD ["litellm", "--model", "ollama/deepseek-llm:67b-chat"]
15
  # 设置ENTRYPOINT