Hi everyone! I'm building a django project with pa...
# general
l
Hi everyone! I'm building a django project with pants. I'm hoping to deploy the app in a docker image. I'm doing this by copying the manage.py pex file into the docker image and running the pex file in a docker container. However my django project connects to a mysql db, so depends on mysqlclient, and I'm struggling to add the system dependencies mysqlclient uses to the docker image. Specifically libmysqlclient.so.21. I believe that this system dependency is installed on my host machine during the pip installation. Does pants have any strategies for copying system dependencies built on the host machine to a docker image? Is there a different way I should be going about this docker image build?
w
Is this of any help? It's slightly related, but not exactly what you need https://pantsbuild.slack.com/archives/C046T6T9U/p1686441191813009
👀 1
l
Thanks @wide-midnight-78598! Looks like I indeed need to add the system dependencies to the docker image manually.
w
🥳
Yeah, that's an intentional design. It's burned (burnt) me before, but it makes sense - I had just thought it was carried through, but there was a hidden dep that was missing
✅ 1