Files
op25-docker/docker-entrypoint.sh
Logan Cusano 72c7a98fc7
Some checks failed
Lint / lint (push) Failing after 6s
release-tag / release-image (push) Failing after 16s
Add '--system' since pulse is running as root
2025-10-23 16:47:55 -04:00

15 lines
453 B
Bash

#!/bin/bash
# --- Start PulseAudio Daemon ---
# The -D flag starts it as a daemon.
# The --exit-idle-time=-1 prevents it from automatically shutting down.
echo "Starting PulseAudio daemon..."
pulseaudio -D --exit-idle-time=-1 --system
# Wait a moment for PulseAudio to initialize
sleep 1
# --- Execute the main command (uvicorn) ---
echo "Starting FastAPI application..."
# The main application arguments are passed directly to this script
exec "$@"