Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -1,8 +1,6 @@
|
|
| 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
|
| 8 |
|
|
@@ -10,7 +8,10 @@ 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 |
-
|
|
|
|
|
|
|
|
|
|
| 14 |
|
| 15 |
EXPOSE 4000
|
| 16 |
|
|
|
|
| 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 |
RUN pip3 install litellm
|
| 9 |
RUN pip3 install 'litellm[proxy]'
|
| 10 |
|
| 11 |
+
# RUN ollama serve & sleep 5 && ollama run mistral:7b
|
| 12 |
+
RUN ollama run mistral:7b
|
| 13 |
+
|
| 14 |
+
#ENV SERVER_ROOT_PATH="/api"
|
| 15 |
|
| 16 |
EXPOSE 4000
|
| 17 |
|