bentebbutt's picture
Update run.sh
42e16f1 verified
raw
history blame
416 Bytes
#!/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