I am trying to run my Angular application (generated with the ng-cli) in a docker file.
This is my docker file:
FROM node:6.10.0
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app
COPY package.json /usr/src/app/
RUN npm install --dev && npm cache clean
COPY . /usr/src/app
CMD [ "ng", "serve" ]
This however crashes with the command:
ng: command not found
How is this possible? Angular CLI is listed in my development depencies of my package.json.
"devDependencies": {
"@angular/cli": "1.4.4",
"@angular/compiler-cli": "^4.2.4",
"@angular/language-service": "^4.2.4",
"@types/jasmine": "~2.5.53",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "~3.2.0",
...