https://prefect.io logo
a

Ashley Felber

11/21/2022, 11:03 PM
Hello, I am running into an issue in the docker build step. Error " Step 4/4 : COPY flows/ flows/ 129 COPY failed: file not found in build context or excluded by .dockerignore: stat flows/: file does not exist. Using the docker image from this repo. cc: @Taylor Curran
t

Taylor Curran

11/22/2022, 5:16 PM
Hi Ashely, are you using the
make all
command? Did you clone this version of the recipes repo?
a

Ashley Felber

11/22/2022, 6:15 PM
@Taylor Curran I did not use the make all command since I was trying to apply to the code I already have. I was able to successfully build the image and push to ECR though. I am now stuck on the deployment build step. I am trying to run the following command but getting the error "No such file or directory: 'flows/main.py". I think part of the issue is I can't figure out where /opt/prefect/ directory is or how to validate that my flow actually was copied there when the image was built.
Copy code
prefect deployment build -n ct-snowflake-load-historical -q prod -ib ecs-task/ct-snowflake-load-historical-task flows/main.py:extract_load_events
t

Taylor Curran

11/22/2022, 10:31 PM
hmm what is the error when you are running the command?
Are you running the command from the dir right above the /flows dir?
a

Ashley Felber

11/22/2022, 10:38 PM
The error is just that the file doesn’t exist. And no I don’t think I am in the right directory. My understanding is when the docker image is built, a copy of the flow is written to /opt/prefect/flows. However, I don’t seem to have that directory or can’t find it.
3 Views