zhengr commited on
Commit
51e6b46
·
verified ·
1 Parent(s): d4224b1

Delete Dockerfile2

Browse files
Files changed (1) hide show
  1. Dockerfile2 +0 -34
Dockerfile2 DELETED
@@ -1,34 +0,0 @@
1
- # 使用基础镜像 ollama/ollama:latest
2
- #FROM ollama/ollama:latest
3
- FROM python:3.11.8-slim
4
-
5
- # 执行 apt 更新和安装 python3 和 pip3
6
- #RUN apt update && apt install -y python3 && apt install -y python3-pip
7
-
8
- # 安装 litellm 和 litellm[proxy],指定豆瓣镜像源
9
- RUN pip3 install litellm
10
- RUN pip3 install 'litellm[proxy]'
11
-
12
- # Create a directory for Ollama data
13
- #RUN mkdir -p /.ollama
14
- #RUN chmod -R 777 /.ollama
15
-
16
- #WORKDIR /.ollama
17
-
18
- # Copy the entry point script
19
- COPY config.yaml /config.yaml
20
- COPY entrypoint.sh /entrypoint.sh
21
- RUN chmod +x /entrypoint.sh
22
-
23
- ENV SERVER_ROOT_PATH="/api"
24
-
25
- EXPOSE 4000
26
- #EXPOSE 7860
27
- #EXPOSE 11434
28
- #EXPOSE 443
29
-
30
- # 设置启动命令(踩坑记录:CMD无法覆盖ollama/ollama镜像的ENTRYPOINT,导致一致报错,改用ENTRYPOINT就可以解决)
31
- # CMD ["litellm", "--model", "ollama/deepseek-llm:67b-chat"]
32
- # 设置ENTRYPOINT
33
- # ENTRYPOINT ["litellm", "--model", "ollama/mistral:7b"]
34
- ENTRYPOINT ["/entrypoint.sh"]