Sep 5, 2018 · 1 min read
A. Vatsaev great article.
Although it would be better, inside the container, to move the node_modules/ instead of copying it. Minimizes the build time and the size of the final image
replacing this:
RUN npm i && mkdir / ng-app && cp -R ./node_modules ./ng-app
For this
RUN npm i && mkdir / ng-app && mv ./node_modules ./ng-app
regards