trends.stumason.dev
TypeScript
Pull Request Opened
PR #162 opened: Fix Docker build after barebones strip (COPY scripts + dead Python deps)
Why
The barebones strip (#161) deleted scripts/linkedin_fetcher.py — the only file in scripts/ — so the now-empty dir is untracked by git and the Dockerfile's COPY scripts ./scripts failed the build:
```
ERROR: failed to compute cache key: "/scripts": not found
```
Full build-chain audit (not a one-line patch)
Validated the whole Docker/runtime chain against the post-strip tree:
COPY scripts ./scripts→ removed (dir gone, no scripts remain). ← the build break- Python/twikit install (
pip3 install requests twikit) → removed; it existed only for the deleted Twitter/LinkedIn fetchers. Drops a whole Python toolchain from the image. - Every other
COPYsource verified to exist (artisan, bootstrap, config, database, public, routes, storage, resources/views, app, docker/*). entrypoint.sh+supervisord.confreference no removed commands (horizon, schedule:work, scheduler:health, reverb — all intact).npm run build✓ andphp artisan route:cache✓ both pass locally.- Final grep across Dockerfile +
docker/for python/twikit/linkedin/twitter/youtube/predictions/divergence/reports/dashboard → clean.
Deploy
Merging this unblocks the devtrends build. The AUTO_MIGRATE=true entrypoint will then run the strip migrations (drop prediction/divergence tables + deactivate sources) — pg_dump the 4 tables first if not already done.
+0
additions
-6
deletions
1
files changed