现象
1 | RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/: |
原因
PHP7.4之后参数(–with-freetype-dir,–with-jpeg-dir)写法有变化需要修改
解决方法,改成
1 | docker-php-ext-configure gd --with-freetype --with-jpeg |
1 | RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/: |
PHP7.4之后参数(–with-freetype-dir,–with-jpeg-dir)写法有变化需要修改
1 | docker-php-ext-configure gd --with-freetype --with-jpeg |