diff options
author | Jasper Ras <jras@hostnet.nl> | 2025-06-16 10:44:49 +0200 |
---|---|---|
committer | Jasper Ras <jras@hostnet.nl> | 2025-06-16 10:44:49 +0200 |
commit | 0d389e1d6c1aed4a92f82d9711f4564a12390fcd (patch) | |
tree | ca4925547669a045d836c2aeb6d4b2309c3f5996 /Bake.md | |
parent | 32422d2b9001291d7136036581122cf4b4eec75c (diff) |
vault backup: 2025-06-16 10:44:49
Diffstat (limited to 'Bake.md')
-rw-r--r-- | Bake.md | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -0,0 +1,22 @@ +--- +tags: +--- +[[Docker]] [[Docker images]] + +Bake is a tool that manages docker build configurations, that are easily referenced e.g: `docker buildx bake <target>`. + +It uses a config file: `docker-bake.hcl`. With it you can specify multiple targets and their build switches (as one would pass directly to docker build): + +```docker-bake.hcl +target "test" { + dockerfile = "docker/test.Dockerfile" +} + +target "debian" { + dockerfile = "docker/debian.Dockerfile" +} + +target "ci" { + dockerfile = "docker/ci.Dockerfile" +} +``` |