#!/bin/sh # Check if the user is root if [ "$(id -u)" = "0" ]; then # Drop privileges using gosu exec gosu user "$0" "$@" fi # Handle any pre-start tasks if needed # Run the main command exec uvicorn app.main:app --host 0.0.0.0 --port 7860