ztc1997 commited on
Commit
572fd85
·
1 Parent(s): fdd916d
Files changed (2) hide show
  1. Dockerfile +15 -0
  2. run.sh +9 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ RUN mkdir /.ollama
4
+
5
+ RUN chmod 777 /.ollama
6
+
7
+ RUN apt-get update && apt-get install git -y && apt-get install curl -y
8
+
9
+ RUN curl -fsSL https://ollama.com/install.sh | sh
10
+
11
+ ADD run.sh /
12
+
13
+ ENV OLLAMA_HOST=0.0.0.0:7860
14
+
15
+ CMD ["/bin/bash", "/run.sh"]
run.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ ollama serve &
4
+ sleep 1
5
+ ollama pull ollam/unichat-llama3-chinese-8b:q4_0
6
+
7
+ while [[ true ]]; do
8
+ sleep 1
9
+ done