Preface After the project is migrated to .net core, we can use the Install Solution 1 Rebuild an image with Solution 2 This is also what I am currently using. I install FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list RUN apt-get update -y && apt-get install -y libgdiplus && apt-get clean && ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll ARG PROJECT WORKDIR /app ... Replace the package source address. Please note that the official image uses the source of sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list Extra: What to do if Chinese fonts are missing? Easy In addition to the above problems, we also encountered missing fonts, which resulted in all the Chinese fonts in the generated pictures being garbled. The Chinese here refers to the ones we drew ourselves through the program. What about this question? Just make up for what you lack. If you lack fonts, just make up for the fonts. Based on the above FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 RUN sed -i "s@http://deb.debian.org@http://mirrors.aliyun.com@g" /etc/apt/sources.list RUN apt-get update -y && apt-get install -y libgdiplus locales fontconfig && apt-get clean && ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll RUN sed -ie 's/#zh_CN.UTF-8 UTF-8/zh_CN.UTF-8 UTF-8/g' /etc/locale.gen && locale-gen && mkdir /usr/share/fonts/truetype/deng/ ADD ./fonts/* /usr/share/fonts/truetype/deng/ RUN fc-cache -vf && fc-list ENV LANG zh_CN.UTF-8 ARG PROJECT WORKDIR /app ... This is the end of this article about sharing the pitfalls of using System.Drawing.Common in Linux/Docker. For more relevant content about using System.Drawing.Common in linux docker, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope you will support 123WORDPRESS.COM in the future! |
<<: Summary of commonly used tool functions in Vue projects
>>: Brief analysis of mysql scheduled backup tasks
1. The first method is to use the unhup command d...
Process structure diagram Nginx is a multi-proces...
Table of contents 1. Basic usage and logic 2. Fea...
Table of contents 1:mysql execution process 1.1: ...
1. Write a simple Java program public class tests...
Copy code The code is as follows: <!--doctype ...
Install fastdfs on Docker Mount directory -v /e/f...
NextCloud You can share any files or folders on y...
Table of contents Cause of the incident Use Node ...
Today I will share with you a breathing carousel ...
In projects, batch operation statements are often...
Front-end test page code: <template> <di...
Table of contents Preface: 1. Introduction to Use...
1. flex-grow, flex-shrink, flex-basis properties ...
Since the team is separating the front-end and ba...