Files
tm_back/cmd/scraper/entrypoint.sh
T
Nima Nakhostin f1bdacdc98 Refactor Scraper Dockerfile and Add Entrypoint Script
- 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.
2025-11-23 13:48:27 +03:30

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