docker- php7.4

安装 gd拓展

an'zhuanga在Dockerfile里面安装php7.4的GD库 - 知乎

apt update
apt install -y libwebp-dev libjpeg-dev libpng-dev libfreetype6-dev

docker-php-source extract

docker-php-ext-configure gd \
--with-jpeg=/usr/include \
--with-freetype=/usr/include/

docker-php-ext-install gd
docker-php-ext-enable gd

安装mcrypt拓展

apt-get install libmcrypt-dev 

pecl install mcrypt-1.0.4 

docker-php-ext-enable mcrypt 

你可能感兴趣的:(php,开发语言)