initial comment
This commit is contained in:
40
docker-entrypoint.sh
Normal file
40
docker-entrypoint.sh
Normal file
@@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Docker entrypoint script for encoderPro container
|
||||
# Supports multiple modes: dashboard, process, or custom commands
|
||||
|
||||
MODE="${1:-dashboard}"
|
||||
|
||||
case "$MODE" in
|
||||
dashboard)
|
||||
echo "Starting Web Dashboard..."
|
||||
exec python3 /app/dashboard.py
|
||||
;;
|
||||
|
||||
process)
|
||||
echo "Starting Encoding Process..."
|
||||
shift
|
||||
exec python3 /app/reencode.py -c /config/config.yaml "$@"
|
||||
;;
|
||||
|
||||
scan)
|
||||
echo "Scanning Library..."
|
||||
exec python3 /app/reencode.py -c /config/config.yaml --scan-only
|
||||
;;
|
||||
|
||||
stats)
|
||||
echo "Displaying Statistics..."
|
||||
exec python3 /app/reencode.py -c /config/config.yaml --stats
|
||||
;;
|
||||
|
||||
bash|shell)
|
||||
echo "Starting Interactive Shell..."
|
||||
exec /bin/bash
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Running custom command: $@"
|
||||
exec "$@"
|
||||
;;
|
||||
esac
|
||||
Reference in New Issue
Block a user