bake: align compose path base with compose

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2026-07-21 11:25:55 +02:00
parent 1dc55abd89
commit bc32533b6e
6 changed files with 111 additions and 36 deletions
+4 -3
View File
@@ -417,9 +417,10 @@ target "app" {
This resolves to the current working directory (`"."`) by default.
Set `BUILDX_BAKE_FILE_RELATIVE_PATHS=1` to resolve local directory paths in
`target.context` and `target.contexts` relative to the Bake or Compose file
that defines each path. Use `cwd://` for paths that should remain relative to
the current working directory when this opt-in is enabled.
`target.context` and `target.contexts` relative to the Bake file that defines
each path. Compose files use the first Compose file directory as the base, which
matches Compose project directory semantics. Use `cwd://` for paths that should
remain relative to the current working directory when this opt-in is enabled.
```console
$ docker buildx bake --print -f - <<< 'target "default" {}'