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!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
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!