Skip to content

Conversation

crazy-max
Copy link
Member

fixes #3074

The result of one target as a build context of another is supported with bake hcl/json definitions using target: prefix: https://docs.docker.com/build/bake/contexts/#using-a-target-as-a-build-context

But not directly with compose syntax where the target is defined as service using service: prefix: https://docs.docker.com/reference/compose-file/build/#additional_contexts

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the compose-service-context branch from 7c2f91c to e114dd0 Compare March 27, 2025 16:58
@crazy-max crazy-max merged commit 0c0e8ee into docker:master Mar 28, 2025
138 checks passed
@crazy-max crazy-max deleted the compose-service-context branch April 4, 2025 08:12
@crazy-max crazy-max added this to the v0.23.0 milestone Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compose: add support for referencing other services in additional_contexts
2 participants