With the release of Docker Desktop 4.38, Docker Bake is now generally available, which brings a powerful way of defining complex builds with declarative files. In this guide, we'll go through the fundamentals of Docker Bake, create a simple Python app, set up a Bake file, and demonstrate how to use it. If you're familiar with docker build and docker compose, you'll find Docker Bake to be wrapper that improves build efficiency.
Source