diff options
author | Kevin Alvarez <crazy-max@users.noreply.github.com> | 2023-05-11 15:52:13 +0200 |
---|---|---|
committer | CrazyMax <crazy-max@users.noreply.github.com> | 2023-05-11 16:30:53 +0200 |
commit | 71846e82c1d14f625fb52ccba168e231df6dbf92 (patch) | |
tree | 880b91579a7ed4b570d0cab0ce6c1c263dab1d23 | |
parent | c01f02cfcbf0cec7fb5d360d167c48b390997bf5 (diff) | |
download | docker-71846e82c1d14f625fb52ccba168e231df6dbf92.tar.gz |
bin-image bake target
Allows to build a non-runnable image that contains bundles.
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
(cherry picked from commit ae1ca671780967a29745c8abbdac0d60eee71655)
-rw-r--r-- | docker-bake.hcl | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/docker-bake.hcl b/docker-bake.hcl index 899551f9e4..26548016d9 100644 --- a/docker-bake.hcl +++ b/docker-bake.hcl @@ -153,6 +153,30 @@ target "all-cross" { } # +# 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 # |