Spaces:
Runtime error
Runtime error
Update
Browse files- Dockerfile +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 |
-
|
8 |
|
9 |
-
CMD ["
|
|
|
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
|