go-links
go-links copied to clipboard
Improved Dockerfile layer caching
Description
All dependency installation happens before copying code. This ensures that simple code changes, without dependency changes, result in the cached dependency layers being reused during image rebuilds.
🔬 How to test
- Build the image.
- Change some code, but no dependencies.
- Build the image again.
- Marvel at the speed.
📸 Cypress Screenshots (if applicable)
Changes include
- [ ] Bug fix (non-breaking change that solves an issue)
- [ ] New feature (non-breaking change that adds functionality)
- [ ] Breaking change (change that is not backwards-compatible and/or changes current functionality)
- [ ] Documentation
- [ ] Release
- [x] Other