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

Improve Docker build caching #8

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

tcarreira
Copy link

Docker build will cache each layer with a temporary container and burst the entire layer cache if some change applies to that layer.
This will have a great impact on build time for every update on package*.json.

We can leverage Docker Build Mounts and add a build caching mount and keep the npm cache between docker builds, even when cache is invalidated. This has a major improvement on developing the node application with docker.

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.

1 participant