title: Multistage docker build with no-cache
body: <p>I have a multistage Dockerfile which is like below. When one of the image referred in the Dockerfile got updated, how to make sure latest versions are pulled again/always pulled while building image based on this Dockerfile. Running docker build command with --no-cache is still referring older versions of image but not actually pulling latest from docker registry.</p>
  
  <pre><code>docker build --no-cache -t test_deploy -f Dockerfile
  </code></pre>
  
  <pre><code>FROM myreg.abc.com/testing_node:latest AS INITIMG
  ....
  ....
  RUN npm install
  RUN npm run build
  
  FROM myreg.abc.com/testing_nginx:latest
  
  COPY --from=INITIMG /sourcecode/build/ /usr/share/nginx/html
  CMD ["nginx", "-g", "daemon off;"]
  </code></pre>