Spaces:
Build error
Build error
bentebbutt
commited on
Commit
•
e4fc497
1
Parent(s):
8b2f332
Update run.sh
Browse files
run.sh
CHANGED
@@ -1,22 +1,9 @@
|
|
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 |
|
15 |
# Start FastAPI app in the background on port 8000
|
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
|
|
|
1 |
#!/bin/bash
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
cd backend
|
4 |
|
5 |
# Start FastAPI app in the background on port 8000
|
6 |
uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid
|
7 |
|
8 |
# Start Nginx
|
9 |
+
nginx -g 'daemon off;'
|
|
|
|
|
|