Exercise · Dockerfile, layers and the cache · lesson 5 of 8
Exercise: speed up the rebuild
A colleague complains: after every change to app.py the API image takes several seconds to rebuild, and all that time Docker installs Flask again. Code changes often and dependencies rarely, yet the build ignores that.