FROM wordpress:latest RUN apt-get update && \ apt-get install libldap2-dev -y && \ rm -rf /var/lib/apt/lists/* && \ docker-php-ext-install ldap