Алексей Филимонов10/29/2020, 4:11 PM
ale10/29/2020, 4:16 PM
or you could define a completely custom base image and use that instead:
from prefect.environments.storage import Docker storage = Docker(python_dependencies=["pyodbc"])
... 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!
storage = Docker(dockerfile="/path/to/Dockerfile")
Алексей Филимонов10/29/2020, 4:35 PM
ale10/29/2020, 4:36 PM