php-fpm fails to build with ldap enabled under mac m1 (arm64)

This commit is contained in:
Kris Pajak 2022-10-13 17:49:13 +02:00
parent 6dba239462
commit 1869b562a3

View File

@ -715,7 +715,8 @@ ARG INSTALL_LDAP=false
RUN if [ ${INSTALL_LDAP} = true ]; then \ RUN if [ ${INSTALL_LDAP} = true ]; then \
apt-get install -yqq libldap2-dev && \ apt-get install -yqq libldap2-dev && \
docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \ ARCH=$(arch) && \
docker-php-ext-configure ldap --with-libdir="lib/${ARCH}-linux-gnu/" && \
docker-php-ext-install ldap \ docker-php-ext-install ldap \
;fi ;fi