【发布时间】:2018-03-31 05:34:28
【问题描述】:
我正在使用基于php:7.1-fpm-alpine (https://github.com/docker-library/wordpress/blob/master/php7.1/fpm-alpine/Dockerfile) 的wordpress:php7.1-fpm-alpine。
我试过RUN pecl install xdebug-2.5.0 && docker-php-ext-enable xdebug
在构建时导致错误:
Step 19/19 : RUN pecl install xdebug-2.5.0 && docker-php-ext-enable xdebug
---> Running in 52c988e12cb2
downloading xdebug-2.5.0.tgz ...
Starting to download xdebug-2.5.0.tgz (267,640 bytes)
........................................................done: 267,640 bytes
76 source files, building
running: phpize
Configuring for:
PHP Api Version: 20160303
Zend Module Api No: 20160303
Zend Extension Api No: 320160303
Cannot find autoconf. Please check your autoconf installation and the
$PHP_AUTOCONF environment variable. Then, rerun this script.
【问题讨论】:
-
github.com/docker-library/wordpress/issues/244 提供的解决方案有效吗?
-
嗯,我真的不认为这是完整的解决方案。我需要确定所有的依赖关系。