entrypoint.sh 350 B

1234567891011121314151617
  1. #!/bin/bash
  2. for file in /iptv-api-config/*; do
  3. filename=$(basename "$file")
  4. target_file="$APP_WORKDIR/config/$filename"
  5. if [ ! -e "$target_file" ]; then
  6. cp -r "$file" "$target_file"
  7. fi
  8. done
  9. . /.venv/bin/activate
  10. service cron start &
  11. python $APP_WORKDIR/main.py &
  12. python -m gunicorn service.app:app -b 0.0.0.0:$APP_PORT --timeout=1000