phidatahq / phidata

Build AI Assistants with memory, knowledge and tools.
https://docs.phidata.com
Mozilla Public License 2.0
11.23k stars 1.67k forks source link

howto add a package into phi+docker+django? #1025

Closed j2l closed 3 months ago

j2l commented 3 months ago

Hello again, I successfully run phi ws up to get the 2 containers running. when I pip install a django package from the container, it works fine ... until I shut the container down. My host venv has the package installed, but phi doesn't seem to add it to the image for django (venv is not the same in the container, using docker image's python). I also added it in requirements.txt hoping that phi ws up would reinstall each time, no luck so far.

How to add a django package to a phi docker stack? Thank you

ysolanky commented 3 months ago

Hello! You would need to build a custom image after making the changes. Here are the docs

j2l commented 3 months ago

Thanks! I'll have a look