Are you using a compiled language? IF so, what are you building with? That is the part that bazel optimizes. Once the build artifact is created, you can containerize it with dagger, of course.
Is the Bazel version consistent across all local dev & build ci? How do tool updates & versions work as developers switch between branches and repos?
Run Bazel in Dagger for consistency, or more generally build your binary in a container with Dagger using whatever tools you like. One main point of Dagger is the consistency between local & cloud for the build scripts, whereas containers have always been thought of as for consistency when running locally and cloud
Everything runs in a container
You can of course run whatever tool you want inside containerize workflows with Dagger, which can be much more than a build tool