From 1869b562a3a1071aabfdfeb5353dca202255ace8 Mon Sep 17 00:00:00 2001 From: Kris Pajak Date: Thu, 13 Oct 2022 17:49:13 +0200 Subject: [PATCH] php-fpm fails to build with ldap enabled under mac m1 (arm64) --- php-fpm/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/php-fpm/Dockerfile b/php-fpm/Dockerfile index 46ecbaf..c5d1a67 100644 --- a/php-fpm/Dockerfile +++ b/php-fpm/Dockerfile @@ -715,7 +715,8 @@ ARG INSTALL_LDAP=false RUN if [ ${INSTALL_LDAP} = true ]; then \ 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 \ ;fi