tvbs/entrypoint.sh

17 lines
345 B
Python
Raw Normal View History

2024-11-26 07:39:59 +02:00
#!/bin/bash
2024-11-28 10:03:01 +02:00
for file in /iptv-api-config/*; do
2024-11-26 07:39:59 +02:00
filename=$(basename "$file")
target_file="$APP_WORKDIR/config/$filename"
if [ ! -e "$target_file" ]; then
cp -r "$file" "$target_file"
fi
done
. /.venv/bin/activate
2024-11-28 09:33:54 +02:00
service cron start &
2024-11-26 07:39:59 +02:00
2024-11-27 10:57:12 +02:00
python $APP_WORKDIR/main.py &
2024-11-26 07:39:59 +02:00
2024-11-27 10:57:12 +02:00
python -m gunicorn service.app:app -b 0.0.0.0:8000 --timeout=1000