All checks were successful
Build and Push / build (push) Successful in 7s
The Docker entrypoint previously created symlinks from /app/ to /app/data/ so that scripts writing relative paths would persist to the mounted volume. This caused symlink loops in production when stale symlinks leaked into the host data directory. Instead, all scrapers, merge_and_map.py, regen_map.py, and run_all.sh now accept a --data-dir argument (default: ".") that controls where data files are read from and written to. The entrypoint and crontab pass --data-dir /app/data, eliminating the need for symlinks entirely. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
14 lines
328 B
Bash
14 lines
328 B
Bash
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
DATA_DIR="/app/data"
|
|
|
|
echo "[entrypoint] Starting crond..."
|
|
crond -b -l 2
|
|
|
|
echo "[entrypoint] Starting initial scrape in background..."
|
|
bash /app/run_all.sh --data-dir "$DATA_DIR" &
|
|
|
|
echo "[entrypoint] Starting HTTP server on port 8080..."
|
|
exec python3 -m http.server 8080 --directory "$DATA_DIR"
|