Speed up your builds with Docker Cache
Steve Grosbois
293
Hrm — wouldn’t it make more sense to build an image that contains just the environment, then volume mount in your code and npm install from there? It seems like a bit of a bad practice to do that stuff as part of the build instead of the run.