Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improved Dockerfile layer caching #242

Closed
wants to merge 1 commit into from

Conversation

clintonb
Copy link

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
  • Other

@clintonb clintonb force-pushed the clintonb/dockerfile branch from d39b4b2 to 6a44e5e Compare March 23, 2024 20:36
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.
@clintonb clintonb force-pushed the clintonb/dockerfile branch from 6a44e5e to 326088d Compare March 23, 2024 20:37
@clintonb
Copy link
Author

@itsojon are you open to contributions? If so can you take review this and my other outstanding reviews? If not, can the README be updated stating as much?

@andykimmay andykimmay closed this Apr 3, 2025
@clintonb
Copy link
Author

clintonb commented Apr 4, 2025

@andykimmay why was this closed? Are contributions not welcome?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants