tvbs/entrypoint.sh
2024-11-28 16:03:01 +08:00

17 lines
No EOL
345 B
Python

#!/bin/bash
for file in /iptv-api-config/*; do
filename=$(basename "$file")
target_file="$APP_WORKDIR/config/$filename"
if [ ! -e "$target_file" ]; then
cp -r "$file" "$target_file"
fi
done
. /.venv/bin/activate
service cron start &
python $APP_WORKDIR/main.py &
python -m gunicorn service.app:app -b 0.0.0.0:8000 --timeout=1000