zhengr commited on
Commit
a766aad
·
verified ·
1 Parent(s): 9b9c197

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -1,6 +1,8 @@
1
  # 使用基础镜像 ollama/ollama:latest
2
  FROM ollama/ollama:latest
3
 
 
 
4
  # 执行 apt 更新和安装 python3 和 pip3
5
  RUN apt update && apt install -y python3 && apt install -y python3-pip
6
 
@@ -8,9 +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 sudo curl -L https://ollama.com/download/ollama-linux-amd64 -o /usr/bin/ollama
12
- RUN sudo chmod +x /usr/bin/ollama
13
-
14
  #ENV SERVER_ROOT_PATH="/api"
15
 
16
  # 设置启动命令(踩坑记录:CMD无法覆盖ollama/ollama镜像的ENTRYPOINT,导致一致报错,改用ENTRYPOINT就可以解决)
 
1
  # 使用基础镜像 ollama/ollama:latest
2
  FROM ollama/ollama:latest
3
 
4
+ RUN ollama serve & sleep 5 && ollama pull ollama/llama2
5
+
6
  # 执行 apt 更新和安装 python3 和 pip3
7
  RUN apt update && apt install -y python3 && apt install -y python3-pip
8
 
 
10
  RUN pip3 install litellm
11
  RUN pip3 install 'litellm[proxy]'
12
 
 
 
 
13
  #ENV SERVER_ROOT_PATH="/api"
14
 
15
  # 设置启动命令(踩坑记录:CMD无法覆盖ollama/ollama镜像的ENTRYPOINT,导致一致报错,改用ENTRYPOINT就可以解决)