Press "Enter" to skip to content

容器化部署ThinkPHP验证码不显示

RUN apt-get install -y libwebp-dev libjpeg-dev libpng-dev libfreetype6-dev --allow-unauthenticated
RUN docker-php-source extract
RUN cd /usr/src/php/ext/gd
RUN 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
RUN docker-php-ext-install gd

参考资料:

https://xushanxiang.com/docker-php-gd.html

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注