DEV Community

aravind-rnd
aravind-rnd

Posted on

sh: 1: ng: not found

[root@username angular]# docker build -t angular .
Sending build context to Docker daemon 189.4kB
Step 1/8 : FROM node:latest AS builder
---> 998feddbb588
Step 2/8 : EXPOSE 4200
---> Using cache
---> ed3014c0982f
Step 3/8 : WORKDIR /angular
---> Using cache
---> b5b5d661d96b
Step 4/8 : COPY . .
---> Using cache
---> c50bb57e519b
Step 5/8 : RUN npm install -g npm@latest
---> Using cache
---> df640144338c
Step 6/8 : RUN npm run build
---> Running in a639ada043fd

Gateway@0.0.0 build
ng build

sh: 1: ng: not found
The command '/bin/sh -c npm run build' returned a non-zero code: 127

Discussion (0)