[Docker] Enforce npm ci in image builds instead of falling back to npm install
Overview & Background
frontend/Dockerfile:33 runs npm ci ... || npm install ... with the comment "fall back to npm install when the committed lockfile and package.json are out of sync so the image still builds" — silently converting a lockfile-desync (a real integrity failure) into a non-reproducible resolve. backend/Dockerfile:19 and :44 never use npm ci at all. For a payment-streaming backend this undermines supply-chain reproducibility: CI/image builds can ship dependency versions that differ from package-lock.json.
Technical Specification & Architecture
- Make
npm cimandatory in both Dockerfiles — fail the build on desync. - Keep lockfile drift as its own CI check instead of masking it in the image build.
Target Files
frontend/Dockerfilebackend/Dockerfile.github/workflows/ci.yml
Acceptance Criteria
- [ ] Both images build with
npm cionly. - [ ] A lockfile desync fails the image build visibly.
- [ ] No
|| npm installfallback remains.
@damilareojetunde has applied to work on this issue as part of the Stellar Wave Program's 11th wave.
I can work on this
ℹ️ Repo Maintainers: To accept this application, review their application or assign @damilareojetunde to this issue.
Congratulations, @damilareojetunde! 🎉 Your application was accepted by the repo's maintainers, and the issue is due on November 25, 2026.
🧑💻 @damilareojetunde: Please resolve the issue such that the repo's maintainers have enough time to review your contribution before the due date. You'll earn Points for completing the issue on-time, which will make you eligible for a share of the Stellar Wave Program's reward pool.
[!WARNING] When opening a PR, please link it to this issue to ensure it gets tracked accurately. Points are awarded when this issue is marked as completed by the maintainer.
🤠 Repo maintainers: Please keep an eye on the contributor's progress and review their work before the due date. You can manage this issue, including adjusting its complexity and points, here.
🌊 Happy Wave 🌊
This issue has been completed by @damilareojetunde as part of the Stellar Wave Program's 11th Wave 🥳
😎 @damilareojetunde: You earned 200 Points for completing this issue! Once the Wave's rewards are finalized, you'll be eligible for a percentage of the Wave's reward pool based on the percentage of total points you've earned. Learn more here. You can also Leave a review to share your experience working on this issue.
🧑💻 Repo maintainers: How'd the contributor do? Leave a review to share your experience working with them.