zhengr commited on
Commit
c18b924
·
verified ·
1 Parent(s): 18c2313

Update Dockerfile

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