feat(output): add wrapper and failed conversion handling

This commit is contained in:
2025-10-15 13:39:37 -05:00
parent 7afec09482
commit d7682ee87d
11 changed files with 324 additions and 0 deletions

18
output/Docker/entrypoint.sh Executable file
View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -euo pipefail
PUID=${PUID:-1000}
PGID=${PGID:-1000}
if ! command -v gosu >/dev/null 2>&1; then
echo "gosu is required but not installed" >&2
exit 1
fi
if [ -d /data ]; then
chown -R "${PUID}:${PGID}" /data
fi
export HOME=${HOME:-/tmp}
exec gosu "${PUID}:${PGID}" python3 /app/watch_and_convert.py