Tag: python ldap

以官方的python docker镜像为基础运行python-ldap

我正在使用python 2.7官方的Python泊坞窗图像。 我正在使用的应用程序需要pyhon-ldap。 我的dockerfile看起来像这样: FROM python:2.7 ENV PYTHONUNBUFFERED 1 RUN mkdir /code WORKDIR /code ADD requirements.txt /code/ RUN pip install -r requirements.txt ADD . /code/ python-ldap在requirements.txt中 当然我碰到这个: In file included from Modules/LDAPObject.c:9:0: Modules/errors.h:8:18: fatal error: lber.h: No such file or directory #include "lber.h" ^ compilation terminated. error: command 'gcc' failed with exit status 我知道从没有libldap2-dev和一些其他软件包安装。 所以我做了一些研究,发现官方的python镜像是由debian […]