WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content
Discussion options

You must be logged in to vote

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!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@martin-amz-advertise
Comment options

Answer selected by desertaxle
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants