docker dtcms.core.api 部署 遇到获取验证码异常

异常:The type initializer for ‘Gdip‘ threw an exception

异常:The type initializer for ‘Gdip‘ threw an exception

原因:参考https://blog.csdn.net/u014374975/article/details/115436174

解决方法:使用又携带 libgdiplus 基础镜像 

将Dockerfile 

FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base

修改

FROM lonwern/aspnetcore-libgdiplus:3.1 AS base








  • 发表于 2021-09-23 16:47
  • 阅读 ( 887 )
  • 分类:安装使用

你可能感兴趣的文章

相关问题

1 条评论

请先 登录 后评论
ME860
ME860

高级工程师

1 篇文章

作家榜 »

  1. dtcms 11 文章
  2. 轻风 2 文章
  3. admin 2 文章
  4. <script>alert("hello")</script> 1 文章
  5. alinly 1 文章
  6. bear 1 文章
  7. 不思进取的.NET开发 1 文章
  8. 枫叶飘 1 文章