gcharanteja
Implement SQLite server and FastAPI integration with updated Dockerfile and startup script
3d4271b | echo "=== Starting SQLite and FastAPI ===" | |
| # Define the persistent directory | |
| PERSIST_DIR="/data" | |
| mkdir -p $PERSIST_DIR | |
| # Start SQLite server in background | |
| echo "π Starting SQLite server on port 8000..." | |
| python3 sqlite_server.py & | |
| SQLITE_PID=$! | |
| # Wait for SQLite server to start | |
| sleep 2 | |
| # Start FastAPI app | |
| echo "π Starting FastAPI app on port 7860..." | |
| python3 app.py & | |
| APP_PID=$! | |
| # Keep both processes alive | |
| wait $SQLITE_PID $APP_PID | |