Do0rMaMu commited on
Commit
4e8cab2
1 Parent(s): 7155aa6

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +9 -2
entrypoint.sh CHANGED
@@ -1,6 +1,13 @@
1
  #!/bin/bash
2
- # Start Ollama in the background
3
- ollama serve
 
 
 
 
 
 
 
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