Алексей Филимонов
10/29/2020, 4:11 PMale
10/29/2020, 4:16 PMnicholas
from prefect.environments.storage import Docker
storage = Docker(python_dependencies=["pyodbc"])
or you could define a completely custom base image and use that instead:
storage = Docker(dockerfile="/path/to/Dockerfile")
... giving you complete control over your flow's dependencies and letting you re-use (or not!) images between flows.
Here are some resources to help with this:
• Configuring Docker storage
• Execution overview
• Storage options
• Deployment considerations (includes a section on dependencies)
• Multi-flow storage
Hopefully these can help!Алексей Филимонов
10/29/2020, 4:35 PMale
10/29/2020, 4:36 PMnicholas
Marvin
10/29/2020, 5:15 PM