Browse Source

bin-image bake target

Allows to build a non-runnable image that contains bundles.

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Kevin Alvarez 2 năm trước cách đây
mục cha
commit
ae1ca67178
1 tập tin đã thay đổi với 24 bổ sung0 xóa
  1. 24 0
      docker-bake.hcl

+ 24 - 0
docker-bake.hcl

@@ -152,6 +152,30 @@ target "all-cross" {
   inherits = ["all", "_platforms"]
 }
 
+#
+# bin image
+#
+
+target "bin-image" {
+  inherits = ["all"]
+  tags = ["moby-bin:local"]
+  output = ["type=docker"]
+}
+
+target "bin-image-cross" {
+  inherits = ["bin-image"]
+  output = ["type=image"]
+  platforms = [
+    "linux/amd64",
+    "linux/arm/v6",
+    "linux/arm/v7",
+    "linux/arm64",
+    "linux/ppc64le",
+    "linux/s390x",
+    "windows/amd64"
+  ]
+}
+
 #
 # dev
 #