If you use a custom image for the Prefect agent and you modify PATH env var in the Dockerfile, do Prefect agent deployments respect that at runtime?
That is, let’s say that you installed a venv / virtualenv / conda, and you activated the environment from your Dockerfile just before calling the agent’s entrypoint. Is it guaranteed that any Prefect deployment will inherit this environment with all the changes I did to PATH and LD_LIBRARY_PATH, or does Prefect agent discard my custom changes?
I think it’s a python-poetry issue that doesn’t appreciate the fact that Prefect agent switches to a temporary working directory during runs.
The road to integrating different components is paved with good intentions.