安装 gd拓展
an'zhuanga在Dockerfile里面安装php7.4的GD库 - 知乎
apt update
apt install -y libwebp-dev libjpeg-dev libpng-dev libfreetype6-devdocker-php-source extractdocker-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