zhengr commited on
Commit
981c72a
1 Parent(s): a32d09f

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -8,8 +8,9 @@ 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 ollama serve & sleep 5 && ollama run mistral:7b
12
- RUN ollama serve
 
13
 
14
  #ENV SERVER_ROOT_PATH="/api"
15
 
@@ -18,4 +19,5 @@ EXPOSE 4000
18
  # 设置启动命令(踩坑记录:CMD无法覆盖ollama/ollama镜像的ENTRYPOINT,导致一致报错,改用ENTRYPOINT就可以解决)
19
  # CMD ["litellm", "--model", "ollama/deepseek-llm:67b-chat"]
20
  # 设置ENTRYPOINT
21
- ENTRYPOINT ["litellm", "--model", "ollama/mistral:7b"]
 
 
8
  RUN pip3 install litellm
9
  RUN pip3 install 'litellm[proxy]'
10
 
11
+ # Copy the entry point script
12
+ COPY entrypoint.sh /entrypoint.sh
13
+ RUN chmod +x /entrypoint.sh
14
 
15
  #ENV SERVER_ROOT_PATH="/api"
16
 
 
19
  # 设置启动命令(踩坑记录:CMD无法覆盖ollama/ollama镜像的ENTRYPOINT,导致一致报错,改用ENTRYPOINT就可以解决)
20
  # CMD ["litellm", "--model", "ollama/deepseek-llm:67b-chat"]
21
  # 设置ENTRYPOINT
22
+ # ENTRYPOINT ["litellm", "--model", "ollama/mistral:7b"]
23
+ ENTRYPOINT ["/entrypoint.sh"]