Hi! Just wondering if it's possible (maybe using `...
# ask-community
m
Hi! Just wondering if it's possible (maybe using
env
or
host_config
) to have the Docker Agent install packages in the docker container at runtime? (Looking for something similar to Docker Storage's
python_dependencies
, but for runtime)
k
If you are using the default Prefect base image, use EXTRA_PIP_PACKAGES and the entrypoint will install it. It’s not preferable though because you install each time compared to having it in the image.
m
Thanks. Does this Work for DockerRun too? (The link shows KubernetesRun, I only have docker agents)
k
Yes it does because it’s the entrypoint of the Prefect image that has an entrypoint to grab this env var and use it
m
Great! This is exactly what I was looking for. Thanks!