flowfi icon indicating copy to clipboard operation
flowfi copied to clipboard

[Docker] Enforce npm ci in image builds instead of falling back to npm install

Open blurbeast opened this issue 2 weeks ago • 3 comments

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

  1. Make npm ci mandatory in both Dockerfiles — fail the build on desync.
  2. Keep lockfile drift as its own CI check instead of masking it in the image build.

Target Files

  • frontend/Dockerfile
  • backend/Dockerfile
  • .github/workflows/ci.yml

Acceptance Criteria

  • [ ] Both images build with npm ci only.
  • [ ] A lockfile desync fails the image build visibly.
  • [ ] No || npm install fallback remains.

blurbeast avatar Nov 18 '26 19:11 blurbeast

@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.

damilareojetunde avatar Nov 20 '26 12:11 damilareojetunde

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 🌊

drips-wave[bot] avatar Nov 20 '26 12:11 drips-wave[bot]

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.

drips-wave[bot] avatar Nov 21 '26 14:11 drips-wave[bot]