Merge pull request #3284 from krispajak/php-fpm-ldap-arm64

php-fpm fails to build with ldap enabled under mac m1 (arm64)
This commit is contained in:
Shao Yu-Lung (Allen) 2022-11-21 07:57:56 +08:00 committed by GitHub
commit f5f389331a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -718,7 +718,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