Raffaele Scarano
01/11/2024, 3:24 PMmyFlow_v0.deploy(
name="myFlow_v0",
work_pool_name="my-pool",
image=DeploymentImage(
name="my-image:latest",
dockerfile="./../../Dockerfile",
platform="linux/amd64",
)
)
but i encounter in prefect.utilities.dockerutils.BuildError: COPY failed: file not found in build context or excluded by .dockerignore
when, into the Dockerfile, it tries to run the command COPY myfile .
It seems like it uses, as build context, the path of my flow.py file and not the Dockerfile posix, anyone have some hint for this?Robin Niel
01/11/2024, 4:01 PM