Webapp.io uses files called Layerfile to let our users:
npm install
npm run start
npm install
can be re-used between commits
unless the files package.json
or package-lock.json
change.
Webapp.io automatically skips steps like npm install
for you by watching which
files are read. In the example above, it would take a snapshot of the VM after npm install
ran, and notice that the step only read the files package.json
and package-lock.json
.
If you push another commit which doesn’t change either of those files, the Layerfile
build would load the snapshot taken after the step last ran, and skip it entirely.