#!/bin/bash # Start the FastAPI application with Uvicorn python -m uvicorn app.main:app --host 0.0.0.0 --port 8000 --static-dir static --static-url / --static-index index.html & UVICORN_PID=$! # Start the worker process python app/worker.py & WORKER_PID=$! # Keep the script running in the foreground to keep containers alive wait $UVICORN_PID $WORKER_PID