Sebastián Ramírez
1 min readSep 20, 2018

--

Try first replicating exactly what is in the post. It will be way easier for you to compare and check the differences and what might be missing.

In this case, I'm pretty sure the problem is because ng is not installed globally inside your Docker container, only as a node_modules dependency. So, you have to use an npm script, and then run it as:

RUN npm run build -- --output-path=./dist/out --configuration

--

--

Sebastián Ramírez
Sebastián Ramírez

Written by Sebastián Ramírez

Creator of FastAPI and Typer. Dev at Exposion AI. APIs, Deep Learning/Machine Learning, full-stack distributed systems, SQL/NoSQL, Python, Docker, JS, TS, etc.

No responses yet