File size: 416 Bytes
8297f0d
 
42e16f1
 
 
 
 
2cf42cd
42e16f1
2cf42cd
42e16f1
2cf42cd
8297f0d
2b2102f
8297f0d
bf1a335
2b2102f
8297f0d
42e16f1
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

# Start ollama server
echo "Starting ollama server"
ollama serve &
sleep 1

# Pull the phi3 model
echo "Pulling phi3 model"
ollama pull phi3
sleep 5

cd backend

# Start FastAPI app in the background on port 8000
uvicorn app:app --host 0.0.0.0 --port 8000 --workers 1 & echo $! > http_server.pid

# Start Nginx
nginx -g 'daemon off;'

# Keep the script running to prevent the container from exiting
wait