Based on answers to the question Python: can't install python-ldap , I see that the requirements for installing the python-ldap
package with pip
are:
I'm building a custom Docker image that needs the python-ldap
package, and I'm wondering if I can remove these build-necessities after installing / building things to keep my image small.
In short, are these prerequisites required for python-ldap to run, or are they merely build requirements?
If it's the latter, I'd like to clean up to minimize my footprint. I simply don't know enough about how the Linux development packages are used to know if they contain files used at run-time.
The *-dev
dependencies is generally only needed for compilation. After compiling python-lap
, these dependencies should not be needed anymore.
Try removing theses dependencies and test the container.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.