Skip to content

Dockerfile node_modules caching #102

@tulma95

Description

@tulma95

Docker build time could be improved by caching node_modules. This can be done by first copying only package.json and installing packages and then copying rest of the code.

More info: https://www.aptible.com/documentation/faq/deploy/dockerfile-caching/npm-dockerfile-caching.html
and
https://stackoverflow.com/questions/35616170/how-to-cache-node-modules-on-docker-build

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions