node
node copied to clipboard
build(docker): optimize multi-stage build for op-node and geth
Summary
This PR refactors the Dockerfile to provide a cleaner, safer, and more efficient build process for both op-node and geth.
Changes
- Split the Dockerfile into three distinct stages (op-node, geth, and final image)
- Added
pipefailandset -efor better error detection during build - Added explicit branch and commit validation for reproducible builds
- Reduced image size by combining RUN layers and removing apt cache
- Added metadata labels and fixed binary permissions
- Replaced CMD with ENTRYPOINT for proper signal handling under supervisord
Motivation
Improves image reproducibility, security, and build performance.
Makes future maintenance easier by isolating build stages and improving readability.
Testing
- Built successfully with Docker 24.0+
- Verified that both
gethandop-nodebinaries run correctly inside container - Supervisor starts and manages both processes as expected
🟡 Heimdall Review Status
| Requirement | Status | More Info | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Reviews |
🟡
0/1
|
Denominator calculation
|
This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This pull request was closed because it has been inactive for 5 days since being marked as stale.