Open yxliang01 opened 5 years ago
That is what the deprecated onbuild
images would do. Perhaps it needs to be dropped into the best practices doc (minus the ONBUILD
keyword)?
Or just update the Dockerfile in the how-to-use this image section, since that two line Dockerfile doesn't really containerize an app unless it has a COPY
.
To avoid performing
npm install
again and again when any source code in the project is being modified, it's (always?) preferred to cachednode_modules
as long aspackage.json
andpackage-lock.json
are not changed. I think this can be added to theBestPractices.md
guide. Welcome for discussions on whether this is really a good practice also.