build: fix docker build (#4931)
This commit is contained in:
@@ -41,13 +41,14 @@ RUN set -ex; \
|
||||
libgmp-dev \
|
||||
libmemcached-dev \
|
||||
libmagickwand-dev \
|
||||
libwebp-dev \
|
||||
; \
|
||||
\
|
||||
debMultiarch="$(dpkg-architecture --query DEB_BUILD_MULTIARCH)"; \
|
||||
if [ ! -e /usr/include/gmp.h ]; then ln -s /usr/include/$debMultiarch/gmp.h /usr/include/gmp.h; fi;\
|
||||
docker-php-ext-configure intl; \
|
||||
docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/; \
|
||||
docker-php-ext-configure gmp --with-gmp="/usr/include/$debMultiarch"; \
|
||||
docker-php-ext-configure gd --with-jpeg --with-freetype --with-webp; \
|
||||
docker-php-ext-configure gmp; \
|
||||
docker-php-ext-install -j$(nproc) \
|
||||
intl \
|
||||
zip \
|
||||
|
||||
Reference in New Issue
Block a user