DEV Community

Discussion on: HOW TO PUT A ANGULAR APPLICATION TO A DOCKER CONTAINER

Collapse
 
anduser96 profile image
Andrei Gatej

I think an improvement as far as the time is concerned would be to only copy package.json and package-lock.json and then run npm run etc(all of this in the first step). AFAIK, if the argument’s content of the COPY command has not changed, it will return the version of the build from the cache.

I might be wrong so please correct me if I missed something!