Documentation wrong? I get Flow.deploy() got an unexpected keyword argument 'dockerfile' #19652
-
|
Prefect version: 3.6.5 On https://docs.prefect.io/v3/how-to-guides/deployments/deploy-via-python#how-to-deploy-flows-with-python it states:
But when I pass I get: TypeError: Flow.deploy() got an unexpected keyword argument 'dockerfile' |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hey @martin-amz-advertise! You are right that the documentation is incorrect. Instead, you'll want do do something like this: from prefect.docker import DockerImage
flow.from_source(
source=git_source,
entrypoint=entrypoint,
).deploy(
...
image=DockerImage(
name="my-image:latest",
dockerfile="../Dockerfile",
)
)I'll update the example in the docs to be correct. Thanks for bringing this to our attention! |
Beta Was this translation helpful? Give feedback.
Hey @martin-amz-advertise! You are right that the documentation is incorrect. Instead, you'll want do do something like this:
I'll update the example in the docs to be correct. Thanks for bringing this to our attention!