Gregory Hunt
06/12/2023, 8:34 PMalex
06/12/2023, 8:38 PMauto
for the dockerfile
field in your build_docker_image
step, it will bake your current working directory into the built image. You can use this functionality to bake your flow code into the image. If you would rather not bake your flow code into the built image, you can use your own Dockerfile by providing the relative path to your Dockerfile for the docker_build_image
step.Gregory Hunt
06/12/2023, 8:40 PMalex
06/12/2023, 8:45 PMjob_variables
section under work_pool
in your deployment.yaml
.
That section will look something like this:
work_pool:
name: my-work-pool
job_variables:
image: {{ image_name }}
You can also run prefect project init --recipe docker
to generate the scaffolding for a Docker-based setup.Gregory Hunt
06/12/2023, 8:46 PMGregory Hunt
06/12/2023, 8:46 PMalex
06/12/2023, 9:09 PMprefect deploy
, the job variables that you specify are saved on the server and used to override the default settings of the work pool the deployment uses.