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.
hmm what is the error when you are running the command?
Taylor Curran
11/22/2022, 10:32 PM
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.
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.