See: https://blog.docker.com/2019/07/intro-guide-to-dockerfile-best-practices/ The main thing is to move the COPY steps down (and reduce what is copied) to be able to make better use of caching.
See: https://blog.docker.com/2019/07/intro-guide-to-dockerfile-best-practices/
The main thing is to move the COPY steps down (and reduce what is copied) to be able to make better use of caching.