docker image build -t my-angular-app .
> [email protected] build /usr/src/app
> ng build --prod
You are running version v10.4.1 of Node.js, which is not supported by Angular CLI 8.0+.
The official Node.js version that is supported is 10.9 or greater.
Please visit https://nodejs.org/en/ to find instructions on how to update Node.js.
npm ERR! code ELIFECYCLE
npm ERR! errno 3
npm ERR! [email protected] build: `ng build --prod`
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the [email protected] build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /root/.npm/_logs/2019-08-09T01_05_45_413Z-debug.log
The command '/bin/sh -c npm ci && npm run build' returned a non-zero code: 3
I'm running your code that I just cloned form GitHub.
I'm not familiar enough with what docker is doing with node to understand what the problem is.