goldfishsoftwarelabs commited on
Commit
f835a11
·
verified ·
1 Parent(s): 3f78d7c

Update entrypoint.sh

Browse files
Files changed (1) hide show
  1. entrypoint.sh +7 -4
entrypoint.sh CHANGED
@@ -1,9 +1,12 @@
1
  #!/bin/bash
2
- # Start Ollama in the background
3
- ollama serve &
4
 
5
- # Pull the model (runs only if not already downloaded)
6
- ollama pull hf.co/Chun121/qwen3-4B-rpg-roleplay:Q4_K_M
 
 
 
7
 
8
  # Start the FastAPI server
9
  uvicorn app:app --host 0.0.0.0 --port 8000
 
1
  #!/bin/bash
2
+ # Start Ollama server in the background
3
+ /usr/bin/ollama serve &
4
 
5
+ # Wait briefly to ensure Ollama server is up
6
+ sleep 5
7
+
8
+ # Pull the model if not already downloaded
9
+ /usr/bin/ollama pull hf.co/Chun121/qwen3-4B-rpg-roleplay:Q4_K_M
10
 
11
  # Start the FastAPI server
12
  uvicorn app:app --host 0.0.0.0 --port 8000