File size: 305 Bytes
b643f1b
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash

# Start FastAPI in the background
uvicorn main:app --host 0.0.0.0 --port 8000 &

# Wait a few seconds for the API to initialize
sleep 5

# Start Streamlit in the FOREGROUND (No '&' at the end)
# This keeps the container running
streamlit run app.py --server.port 7860 --server.address 0.0.0.0