I have a project with this structure. The two flow...
# ask-community
e
I have a project with this structure. The two flows have some shared functions and configs.  project/ • flow1.py • flow2.py • utils/ • config/ I’d like to pack two flows in one docker image but I don’t see a prefect command which can help me do so. e.g if I speficy storage for both flow1 and flow2 with the same image name, they will overwrite each other when I call
prefect register
So I try to replicate the behavior of building storage by writing my own dockerfile. A question here is how does the file
healthcheck.py
and
flow1.flow
come into scope? Below is the output after I call register command with docker storage
Copy code
Step 7/12 : COPY flow1.flow /opt/prefect/flows/flow1.prefect
 ---> ea7572a6c0e7
Step 8/12 : COPY healthcheck.py /opt/prefect/healthcheck.py
I debugged with the image as well. the
.flow
file is not human readable, while the output of flow.serialize() is. Not sure they are equal or not
k
Welp, I was typing out my answer but this looks like a better solution for your use case!
e
but still interested in how does the two files come into scope, it can help me better understand the framework
appreciate for the help 😄
k
I’d have to get back to you for more details.
My initial answer though is that you don’t need to worry about those when you build your own image. You can also just build on top of the Prefect images: https://hub.docker.com/r/prefecthq/prefect