I am using Kaniko executer to build and push a docker image to ECR with Gitlab-CI. The Docker file contains the step to install python-ldap-3.0.0, but I am getting the below error:
lber.h: No such file or directory
error: command 'gcc' failed with exit status 1
ERROR: Failed building wheel for python-ldap
Running setup.py clean for python-ldap
Failed to build python-ldap
I am installing the required packages as well:
apk add openldap-dev, python2-dev, libressl-dev, libffi-dev
The image is getting built successfully if I am using Docker-in-Docker instead of Kaniko.