Spaces:
Sleeping
Sleeping
| # Check if the user already exists | |
| if ! id user >/dev/null 2>&1; then | |
| # Create a new user | |
| useradd -m -u 1000 user | |
| fi | |
| # Switch to the user | |
| su - user | |
| # Start the application | |
| uvicorn app.main:app --host 0.0.0.0 --port 7860 --reload | |