Add support for docker buildx bake files #10919
Labels
containers
Issue in vscode-remote containers
feature-request
Request for new features or functionality
Milestone
It would be nice if we could specify a
buildx
field in the devcontainer.json (similar to the currentbuild
field) to point to adocker-bake.hcl
file. The Bake files is next generation of build definitions in docker, and is supperior to standard Dockerfiles: https://docs.docker.com/build/bake/reference/I think the old
build
scheme with Dockerfiles are perfectly fine and covers 99% of all devcontainers. But when you start to have more complex setups and you want to reuse build configurations between multiple docker images it becomes much easier to maintain with Bake files.So a suggestion would be that devcontainers (either building directly from a Dockerfile or using a docker-compose.yml) has 2 options:
build
: what we have todaybuildx
: new feature that can point to a *.hcl fileIf
buildx
is defined adocker buildx bake
command in the background instead of normaldocker build
.The text was updated successfully, but these errors were encountered: