Antreas Pogiatzis
01/31/2025, 6:19 PMJan 31 at 17:44:22.184
17:44:22.100 | INFO | Flow run 'amber-kingfisher' - Downloading flow code from storage at '.'
Jan 31 at 17:44:22.189
17:44:22.183 | DEBUG | Flow run 'amber-kingfisher' - Importing flow code from 'bbchatops/prefect/flows/crtsh.py:crtsh_subdomain_discovery_flow'
Jan 31 at 17:44:22.259
17:44:22.252 | ERROR | Flow run 'amber-kingfisher' - Flow could not be retrieved from deployment.
Traceback (most recent call last):
File "<frozen importlib._bootstrap_external>", line 879, in exec_module
File "<frozen importlib._bootstrap_external>", line 1016, in get_code
File "<frozen importlib._bootstrap_external>", line 1073, in get_data
FileNotFoundError: [Errno 2] No such file or directory: '/bbchatops/prefect/flows/crtsh.py'
The above exception was the direct cause of the following exception:
In the custom Dockerfile I'm copying my code (which lives in the bbchatops
folder) to root path /
and I've also tried /opt/prefect
as well but still getting the same error. Where should the flow code live within the container so that it's picked up successfully?Bianca Hoch
01/31/2025, 7:41 PM.deploy()
or prefect.yaml
)? What does your Dockerfile look like?Antreas Pogiatzis
01/31/2025, 10:24 PM.deploy()
and here's my Dockerfile
FROM prefecthq/prefect:3-python3.10
WORKDIR /opt/prefect
COPY . .
RUN pip install poetry
RUN poetry install
Antreas Pogiatzis
02/02/2025, 7:53 PMBianca Hoch
02/03/2025, 2:18 PM