Do0rMaMu commited on
Commit
7e95cd8
1 Parent(s): 4e8cab2

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +1 -6
entrypoint.sh CHANGED
@@ -1,12 +1,7 @@
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 &
 
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 &