Victor
03/08/2025, 12:17 AM2025-03-08T00:04:13.098361341Z 00:04:12.922 | INFO | prefect.flow_runs.runner - Reported flow run 'aa252e24-14c1-4492-8ddd-8a36cd0668fb' as crashed: Flow run process exited with non-zero status code 1.
2025-03-08T00:04:13.098365529Z 00:04:12.939 | INFO | prefect.flow_runs.runner - Loading flow to check for on_crashed hooks
2025-03-08T00:04:13.098369437Z 00:04:13.023 | INFO | Flow run 'eager-boobook' - > Running set_working_directory step...
2025-03-08T00:04:13.098373424Z 00:04:13.089 | ERROR | Flow run 'eager-boobook' - [Errno 2] No such file or directory: '/opt/prefect/projectname'
here is my Dockerfile:
FROM prefecthq/prefect:3.2.9-python3.11
RUN mkdir -p /opt/prefect/projectname
COPY . /opt/prefect/projectname/
WORKDIR /opt/prefect/projectname/
RUN pip install -r dt/pdf_reader/requirements.txt
here is the success deploy log:
✦ 10% ❯ prefect deploy --prefect-file ./dt/pdf_reader/prefect.yaml --name 'pdf-reader-docker-deploy'
? Does your Dockerfile have a line that copies the current working directory into your image? [y/n]: y
? What is the path to your flow code in your Dockerfile? (/opt/prefect/projectname):
Running deployment build steps...
> Running build_docker_image step...
Step 1/5 : FROM prefecthq/prefect:3.2.9-python3.11