Hi! I am using the work pool Azure Container Insta...
# ask-community
a
Hi! I am using the work pool Azure Container Instance:push. For specific deployments which uses this work-pool, how can I override the docker image url?
1
j
Hi, the image is templatable for deployments by default if it's not set on your work pool. So you would unset the image (if it's been set on the work pool) and then on your deployment in your
prefect.yaml
you would do:
Copy code
...
deployments:
- name: my-deployment
  work_pool:
    name: "my-work-pool"
    job_variables:
      image: <<image name goes here>>
1
a
Is it possible to do in python using Deployment.build_from_flow?
j
You should be able to use
Deployment.build_from_flow(infra_overrides={"image": <<image goes here>>})
🙌 1