jljiu commited on
Commit
5f25b03
·
verified ·
1 Parent(s): 743b29b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -3
Dockerfile CHANGED
@@ -19,16 +19,17 @@ RUN pip install gradio
19
 
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
- # 将当前目录下的所有文件复制到容器内的/app目录
30
- COPY . /app
31
-
32
  # 创建Ollama模型
33
  RUN ollama create llama3-zh -f /app/Modelfile
34
 
 
19
 
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
+ # 将当前目录下的所有文件复制到容器内的/app目录
23
+ COPY . /app
24
+
25
  RUN pip install requests
26
+
27
  # 启动Ollama服务并放到后台运行
28
  RUN nohup ollama serve > /dev/null 2>&1 &
29
 
30
  # 等待Ollama服务启动
31
  RUN sleep 10
32
 
 
 
 
33
  # 创建Ollama模型
34
  RUN ollama create llama3-zh -f /app/Modelfile
35