f1bdacdc98
- Replaced inline entrypoint script creation in the Dockerfile with a separate entrypoint.sh file for better maintainability and clarity. - The new entrypoint script handles one-time scraping with date range support, improving the scraper's functionality and usability.
10 lines
207 B
Bash
10 lines
207 B
Bash
#!/bin/sh
|
|
set -e
|
|
|
|
if [ "$SCRAPER_ONETIME" = "true" ] && [ -n "$FROM_DATE" ] && [ -n "$TO_DATE" ]; then
|
|
exec /app/scraper-build -onetime -from "$FROM_DATE" -to "$TO_DATE"
|
|
else
|
|
exec /app/scraper-build
|
|
fi
|
|
|