ztc1997 commited on
Commit
b60ea9a
·
1 Parent(s): 8b3ebde
Files changed (2) hide show
  1. Dockerfile +2 -2
  2. run.sh +9 -0
Dockerfile CHANGED
@@ -4,6 +4,6 @@ RUN apt-get update && apt-get install git -y && apt-get install curl -y
4
 
5
  RUN curl -fsSL https://ollama.com/install.sh | sh
6
 
7
- RUN ollama serve & ollama pull shaw/dmeta-embedding-zh-small-q4
8
 
9
- CMD ["ollama", "serve"]
 
4
 
5
  RUN curl -fsSL https://ollama.com/install.sh | sh
6
 
7
+ ADD run.sh /
8
 
9
+ CMD ["/bin/bash", "/run.sh"]
run.sh ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+
3
+ ollama serve > /var/log/serve.log 2>&1 &
4
+
5
+ ollama pull shaw/dmeta-embedding-zh-small-q4
6
+
7
+ while [[ true ]]; do
8
+ sleep 1
9
+ done