fix(docker): COPY lib/ into agent-runner image (M19 runner-push-guard) #50

Merged
janpeter merged 1 commit from fix/M19-dockerfile-copy-lib into master 2026-07-07 20:42:19 +02:00
Owner

Incident fix. PR #47 added lib/docs-audit-push.ts + a top-level import of it in bin/run-one-job.ts, but the Dockerfile never COPYs lib/. After a rebake the fleet cannot load run-one-job.ts for ANY job-kind (Cannot find module ../lib/docs-audit-push.ts). This adds COPY lib/ ./lib/. Verified: lib/ present in build context; import path bin/ -> ../lib.

🤖 Discovered during M19 fase-4 DEEL-1 rebake.

**Incident fix.** PR #47 added `lib/docs-audit-push.ts` + a top-level import of it in `bin/run-one-job.ts`, but the Dockerfile never `COPY`s `lib/`. After a rebake the fleet cannot load `run-one-job.ts` for ANY job-kind (`Cannot find module ../lib/docs-audit-push.ts`). This adds `COPY lib/ ./lib/`. Verified: `lib/` present in build context; import path `bin/ -> ../lib`. 🤖 Discovered during M19 fase-4 DEEL-1 rebake.
fix(docker): COPY lib/ into agent-runner image (M19 runner-push-guard)
All checks were successful
CI / Compose config (pull_request) Successful in 4s
CI / Docker build (pull_request) Successful in 28s
928c989aa2
PR #47 added lib/docs-audit-push.ts and a static import of it in
bin/run-one-job.ts, but the Dockerfile never COPYed lib/ into the image.
Because the import is top-level, tsx fails to load run-one-job.ts for EVERY
job-kind with 'Cannot find module ../lib/docs-audit-push.ts' — breaking the
whole fleet after a rebake, not just DOCS_AUDIT.

Add 'COPY lib/ ./lib/' alongside the bin/ copy so the runner helpers ship.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
janpeter merged commit 44fae46da0 into master 2026-07-07 20:42:19 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
janpeter/scrum4me-docker!50
No description provided.