Docker BuildKit: faster builds, new features, and now it's stable
Building Docker images can be slow, and Docker's build system is also missing some critical security features, in particular the ability to use build secrets without leaking them. So over the past few years the Docker developers have been working on a new backend for building images, BuildKit.
https://pythonspeed.com/articles/docker-buildkit/