bentebbutt commited on
Commit
42e16f1
·
verified ·
1 Parent(s): 9801a10

Update run.sh

Browse files
Files changed (1) hide show
  1. run.sh +11 -1
run.sh CHANGED
@@ -1,7 +1,14 @@
1
  #!/bin/bash
2
 
 
 
 
 
 
3
  # Pull the phi3 model
 
4
  ollama pull phi3
 
5
 
6
  cd backend
7
 
@@ -9,4 +16,7 @@ cd backend
9
  uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid
10
 
11
  # Start Nginx
12
- nginx -g 'daemon off;'
 
 
 
 
1
  #!/bin/bash
2
 
3
+ # Start ollama server
4
+ echo "Starting ollama server"
5
+ ollama serve &
6
+ sleep 1
7
+
8
  # Pull the phi3 model
9
+ echo "Pulling phi3 model"
10
  ollama pull phi3
11
+ sleep 5
12
 
13
  cd backend
14
 
 
16
  uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid
17
 
18
  # Start Nginx
19
+ nginx -g 'daemon off;'
20
+
21
+ # Keep the script running to prevent the container from exiting
22
+ wait