go-links icon indicating copy to clipboard operation
go-links copied to clipboard

Improved Dockerfile layer caching

Open clintonb opened this issue 1 year ago • 0 comments

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
  1. Build the image.
  2. Change some code, but no dependencies.
  3. Build the image again.
  4. 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

clintonb avatar Mar 23 '24 20:03 clintonb