0

Is there a way to copy test results directory from running container before it shuts down?

...
COPY tests tests
...
CMD ["yarn", "test"]
COPY /home/node/project/app/results results

I've tried COPY after or on same line (e.g, &&) as the CMD but that has not worked.

papanito
  • 2,349
  • 2
  • 32
  • 60
  • Maybe [this question](https://stackoverflow.com/questions/33377022/how-to-copy-files-from-dockerfile-to-host) helps – papanito May 06 '22 at 05:41
  • Does this answer your question? [How to copy files from dockerfile to host?](https://stackoverflow.com/questions/33377022/how-to-copy-files-from-dockerfile-to-host) – papanito May 06 '22 at 05:43

0 Answers0