When you setup a Prefect project where it builds a Docker Container, does it bake the code into that docker image?
✅ 1
a
alex
06/12/2023, 8:38 PM
Hey @Gregory Hunt! If you specify
auto
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.
g
Gregory Hunt
06/12/2023, 8:40 PM
@alex cool ok i have that working, what command pushes changes to the definitions->work_pools section, i am trying to get the project to update the docker image in the workpool
a
alex
06/12/2023, 8:45 PM
To tell the work pool which Docker image to use for your deployment, you’ll need to update the
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.