使用"mews/captcha:~2.0" 驗證碼圖片不顯示問題

myheat發表於2018-10-25

參考來源地址:https://github.com/docker-library/docs/blo...

錯誤說明:
Symfony\Component\Debug\Exception\FatalThrowableError: Call to undefined function Intervention\Image\Gd\imagettfbbox() in file /usr/share/nginx/html/LaraBBS/vendor/intervention/image/src/Intervention/Image/Gd/Font.php on line 85

如果已經開啟了gd,請參考下

FROM php:7.0-fpm
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
&& docker-php-ext-install -j$(nproc) iconv mcrypt \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd

本作品採用《CC 協議》,轉載必須註明作者和本文連結

相關文章