Is there any best practice suggestion/examples on ...
# ask-community
e
Is there any best practice suggestion/examples on using docker agent + docker run? Right now, after my flow is tested locally, what I do is: • Add one extra line at the end of flow to enable docker-run plus image information, e.g
foo
image • Run a command to register flow to cloud • Build and ship
foo
image based on
prefect/prefecthq
image - in the docker file, I have to copy the code to somewhere like
/app/
and set it as workdir It works, but I am curious about whether somewhere can be improved. Thank you!
k
Hi @Enda Peng! Yes this looks like a good approach. A lot of people have issues with dependencies when they don’t copy their code over.