Spaces:
Sleeping
Sleeping
Update ollama_start.sh
Browse files- ollama_start.sh +3 -6
ollama_start.sh
CHANGED
@@ -1,13 +1,10 @@
|
|
1 |
#!/bin/bash
|
2 |
-
|
3 |
-
# Execute the start.sh script from the base image (assuming it's in /path/to/start.sh)
|
4 |
-
./start.sh &
|
5 |
-
|
6 |
# Run additional commands from your Dockerfile
|
7 |
(curl -fsSL https://ollama.com/install.sh | sh && ollama serve > ollama.log 2>&1) &
|
8 |
-
|
9 |
# Keep the container running by running a dummy command
|
10 |
# Start ollama
|
11 |
ollama serve &
|
12 |
sleep 2
|
13 |
-
ollama
|
|
|
|
|
|
1 |
#!/bin/bash
|
|
|
|
|
|
|
|
|
2 |
# Run additional commands from your Dockerfile
|
3 |
(curl -fsSL https://ollama.com/install.sh | sh && ollama serve > ollama.log 2>&1) &
|
|
|
4 |
# Keep the container running by running a dummy command
|
5 |
# Start ollama
|
6 |
ollama serve &
|
7 |
sleep 2
|
8 |
+
ollama list
|
9 |
+
ollama pull nomic-embed-text
|
10 |
+
ollama pull llama3:8b
|