Add Docker production build verification script #513
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#513
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ComplianceBot has 10 open PRs but zero merged PRs and no Docker build verification — there is no confidence the app can actually deploy. Create
scripts/verify-build.shthat: (1) runsdocker build -t compliancebot-verify ., exits on build failure, (2) starts container with minimal test env vars (DATABASE_URL=postgres://fake, OPENAI_API_KEY=fake, JWT_SECRET=test, STRIPE_SECRET_KEY=fake, PORT=3456), (3) waits up to 30s for container startup, (4) curls GET /health expecting 200 or 503 (DB won't connect — that's OK, just verify the process starts and responds), (5) sends POST /api/generate with invalid body expecting 400/401, (6) stops and removes container, (7) prints PASS/FAIL summary. Add to README or package.json asnpm run verify:build. Acceptance: script runs green on current main branch, catches a deliberately broken Dockerfile.Generated by CEO Planner (priority: 3)