Closed kennu closed 9 years ago
The npm install script should not perform a Bower install, because that makes it impossible to run "npm install" inside Docker without also having Bower installed. Bower should be run outside Docker, before building the image.
Pull request #36 should fix this. I wonder why it wasn't autoreferenced here, regardless of the fixes label and the issue number...
The Docker build in the Angular.js branch includes a large number of files which seem unnecessary for running a service in production. They will cause some bloat and unnecessary dependencies/rebuilding in Docker images.
Assuming the application is designed to be pre-built (Bower, SASS, minifactions etc), only the final dist files and the production node_modules should be included in the Docker image. It would be clearer to put also the Bower modules under dist and exclude the entire app/src folder from the build.