Skip to content

Conversation

@rcjsuen
Copy link
Collaborator

@rcjsuen rcjsuen commented Apr 17, 2025

We should not be assuming that the Dockerfile always resides in the same folder as the Bake file. If there's a context defined then we need to concatenate the folder in the context attribute's value with the named Dockerfile.

Fixes #57.

We should not be assuming that the Dockerfile always resides in the same
folder as the Bake file. If there's a context defined then we need to
concatenate the context folder with the named Dockerfile.

Signed-off-by: Remy Suen <remy.suen@docker.com>
@rcjsuen rcjsuen self-assigned this Apr 17, 2025
Signed-off-by: Remy Suen <remy.suen@docker.com>
@rcjsuen rcjsuen merged commit b74ceed into main Apr 17, 2025
9 checks passed
@rcjsuen rcjsuen deleted the resolve-dockerfile-with-context branch April 17, 2025 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Consider the context attribute when resolving the Dockerfile in a Bake file

2 participants