Update Dockerfile
Browse files- Dockerfile +5 -0
Dockerfile
CHANGED
@@ -20,6 +20,11 @@ RUN pip install gradio
|
|
20 |
RUN curl -L https://huggingface.co/shenzhi-wang/Llama3.1-8B-Chinese-Chat/resolve/main/gguf/llama3.1_8b_chinese_chat_q8_0.gguf?download=true -o /app/llama3.1_8b_chinese_chat_q8_0.gguf
|
21 |
|
22 |
RUN pip install requests
|
|
|
|
|
|
|
|
|
|
|
23 |
|
24 |
# 创建Ollama模型
|
25 |
RUN ollama create llama3-zh -f /app/Modelfile
|
|
|
20 |
RUN curl -L https://huggingface.co/shenzhi-wang/Llama3.1-8B-Chinese-Chat/resolve/main/gguf/llama3.1_8b_chinese_chat_q8_0.gguf?download=true -o /app/llama3.1_8b_chinese_chat_q8_0.gguf
|
21 |
|
22 |
RUN pip install requests
|
23 |
+
# 启动Ollama服务并放到后台运行
|
24 |
+
RUN nohup ollama serve > /dev/null 2>&1 &
|
25 |
+
|
26 |
+
# 等待Ollama服务启动
|
27 |
+
RUN sleep 10
|
28 |
|
29 |
# 创建Ollama模型
|
30 |
RUN ollama create llama3-zh -f /app/Modelfile
|