Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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 |
-
#
|
12 |
-
|
|
|
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"]
|