title: Is it possible to re-use the image from another stage in Docker multi-stage builds?
body: <p>Is it possible to re-use the entire resulting image from another build stage?</p>
  
  <p>The only application I'm aware of is using <code>COPY --from=some-stage</code> to copy files from another stage. I'm wondering if it's possible re-use the entire result of another stage, see an example below:</p>
  
  <pre><code>FROM ubuntu:latest AS production
  RUN /bin/bash install-my-app.sh
  
  FROM production AS debug
  RUN /bin/bash install-debug-tools.sh
  </code></pre>
  
  <p>This allows me to target the debug stage if I want to include the debug tools and configuration, while leaving the production steps untouched.</p>