EasyCaptcha icon indicating copy to clipboard operation
EasyCaptcha copied to clipboard

docker环境下报错:sun.awt.FontConfiguration.getVersion null

Open sxyandapp opened this issue 5 years ago • 3 comments

我知道是因为fontconfig这个东西,我想说的是可否改成不依赖这个fontconfig,这样就无需对程序运行环境进行修改了 (google的captcha有同样的这个问题)

sxyandapp avatar Oct 10 '20 09:10 sxyandapp

Dockerfile add : RUN sed -i "s/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g" /etc/apk/repositories RUN apk --no-cache add ttf-dejavu fontconfig

whybeyoung avatar Jan 17 '21 08:01 whybeyoung

Dockerfile添加: RUN sed -i“ s / dl-cdn.alpinelinux.org / mirrors.aliyun.com / g” / etc / apk / repositories RUN apk --no-cache添加ttf-dejavu fontconfig

实测有效,感谢分享

CanonNr avatar Feb 02 '21 02:02 CanonNr

感谢~

fwjyttbtx avatar May 13 '21 03:05 fwjyttbtx