title: Docker /bin/sh: 1: ng: not found (Angular)
body: <p>I am trying to build a docker image for an Angular app but it crashes on <code>RUN ng build --prod</code> and I get the following error:</p>
  
  <pre><code>/bin/sh: 1: ng: not found
  The command '/bin/sh -c ng build --prod' returned a non-zero code: 127
  </code></pre>
  
  <p>Here is my Dockerfile:</p>
  
  <pre><code>FROM node:13.3.0 AS compile-image
  RUN npm install -g yarn
  WORKDIR /opt/ng 
  COPY package.json yarn.lock ./
  RUN yarn
  RUN yarn install
  COPY . ./ 
  RUN ng build --prod
  FROM nginx
  COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf
  COPY --from=compile-image /opt/ng/dist/dashboard /usr/share/nginx/html
  CMD ["yarn", "start"]
  </code></pre>
  
  <p>I have no previous experience with docker, so sorry if this is a stupid question. </p>