开发PHPDockerdocker安装PHP的GD扩展❄️2winter2020-11-162020-11-161234567apt update #更新软件源apt install -y libwebp-dev libjpeg-dev libpng-dev libfreetype6-dev #安装各种库docker-php-source extract #解压源码cd /usr/src/php/ext/gd #gd源码文件夹docker-php-ext-configure gd --with-webp-dir=/usr/include/webp --with-jpeg-dir=/usr/include --with-png-dir=/usr/include --with-freetype-dir=/usr/include/freetype2 #准备编译docker-php-ext-install gd #编译安装php -m | grep gd