Spaces:
Runtime error
Runtime error
Update entrypoint.sh
Browse files- entrypoint.sh +9 -2
entrypoint.sh
CHANGED
@@ -1,6 +1,13 @@
|
|
1 |
#!/bin/bash
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
ollama run llama2-uncensored &
|
6 |
|
|
|
1 |
#!/bin/bash
|
2 |
+
|
3 |
+
# Define Ollama directory within the container's working directory
|
4 |
+
OLLAMA_DIR="./ollama"
|
5 |
+
|
6 |
+
# Create the Ollama directory if it does not exist
|
7 |
+
mkdir -p ${OLLAMA_DIR}
|
8 |
+
|
9 |
+
# Start Ollama in the background, specifying the directory for its data
|
10 |
+
ollama serve --dir ${OLLAMA_DIR}
|
11 |
|
12 |
ollama run llama2-uncensored &
|
13 |
|