Skip to content

bake: support compose service as build context #3080

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 28, 2025

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

@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