Spaces:
Runtime error
Runtime error
Update entrypoint.sh
Browse files- entrypoint.sh +1 -6
entrypoint.sh
CHANGED
|
@@ -1,12 +1,7 @@
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
-
|
| 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 &
|
|
|
|
| 1 |
#!/bin/bash
|
| 2 |
|
| 3 |
+
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
|
|
|
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
ollama serve --dir ${OLLAMA_DIR}
|
| 6 |
|
| 7 |
ollama run llama2-uncensored &
|