Fix: merge consecutive RUN instructions in frontend Dockerfile#3643
Fix: merge consecutive RUN instructions in frontend Dockerfile#3643Shubb07 wants to merge 3 commits intoOWASP:mainfrom
Conversation
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings. WalkthroughThis PR addresses SonarQube warnings by consolidating consecutive RUN instructions in the Docker frontend configuration and bumping npm to 7.5.4. It also updates JSX rendering in the contribute page to use optional chaining with explicit index forwarding. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~4 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|



Proposed change
Resolves #3427
This PR fixes a SonarCloud maintainability issue (docker:S7031) in
docker/frontend/Dockerfile, where consecutiveRUNinstructions wereused.
The instructions were merged into a single
RUNlayer to reduce thenumber of Docker image layers and improve maintainability, following
Docker best practices. This change does not alter any functional
behavior.
Checklist
make check-testlocally: all warnings addressed, tests passed