Skip to content
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

Documentation for build path argument #3067

Closed
rhoban13 opened this issue Nov 14, 2022 · 1 comment
Closed

Documentation for build path argument #3067

rhoban13 opened this issue Nov 14, 2022 · 1 comment

Comments

@rhoban13
Copy link

The path argument passed to build in the documentation says

path (str) – Path to the directory containing the Dockerfile

I suspect this really means "path to the build context"? Doesn't have to necessarily be the same as the directory containing the Dockerfile - is that right?

@milas
Copy link
Contributor

milas commented Dec 1, 2022

Yes, see #3043 for a PR improving this. It's the build context, so if it includes a Dockerfile that'll be used by default, but you can specify a custom path with the dockerfile arg or provide the contents directly via fileobj arg

@milas milas closed this as completed Dec 1, 2022
@milas milas self-assigned this Dec 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants