https://prefect.io logo
#prefect-community
Title
# prefect-community
m

Mark NS

12/21/2022, 3:19 PM
I've managed to get my flows to run in docker infrastructure, using a remote s3 storage block for deploying flows, which is pretty cool (to me :P). (earlier struggles) I'm curious how people deploying/declaring/installing the prefect dependencies of their flows though 🤔 . Is it correct that the flows themselves are downloaded at runtime, but the dependencies have to be included in the infrastructure image ahead of time? Say I'm trying to orchestrate a Java application. Does the Java application image also need to have Python, prefect and the prefect dependencies pre-installed?
✅ 2
k

Khuyen Tran

12/21/2022, 5:14 PM
You will need to have Python and pip installed in the Docker container. You can install other pip packages at run time by specifying
EXTRA_PIP_PACKAGES
for the
env
parameter. Here is an example.
m

Mark NS

12/21/2022, 5:28 PM
Thanks for confirming that @Khuyen Tran 🙂
j

Jeff Hale

12/21/2022, 5:56 PM
FYI, if you need a faster boot-up time, you can make a custom Docker image with the packages installed.
4 Views