通过docker拉取一个.netcore3.1基础镜像
docker pull mcr.microsoft.com/dotnet/aspnet:3.1
进入容器
docker run -it mcr.microsoft.com/dotnet/aspnet:3.1 /bin/bash
部署libgdiplus
apt-get update -y
apt-get install -y libgdiplus
apt-get clean
ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll
退出当前容器并将当前容器重新打包成一个新的镜像
docker commit -a="simple" -m="added libgdiplus based on .netcore3.1" 基础镜像ID dotnetcore-with-libgdiplus:3.1