#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging. FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim AS base WORKDIR /app EXPOSE 80 EXPOSE 443 RUN echo "deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb http://mirrors.aliyun.com/debian-security stretch/updates main deb-src http://mirrors.aliyun.com/debian-security stretch/updates main deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib" > /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 FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build WORKDIR /src COPY ["xxx/xxx.csproj", "xxx/"] COPY ["xxx.xxx/xxx.xxx.csproj", "xxx.xxx/"] COPY ["xxx.xxx/xxx.xxx.csproj", "xxx.xxx/"] COPY ["xxx/xxx.xxx.csproj", "xxx/"] COPY ["xxx.xxx/xxx.xxx.csproj", "xxx.xxx/"] COPY ["xxx.xxx/xxx.xxx.csproj", "xxx.xxx/"] COPY ["xxx.xxx/xxx.xxx.csproj", "xxx.xxx/"] COPY ["xxx.xxx/xxx.xxx.csproj", "xxx.xxx/"] COPY ["xxx.xxx/xxx.xxx.csproj", "xxx.xxx/"] RUN dotnet restore "xxx/xxx.csproj" COPY . . WORKDIR "/src/xxx" RUN dotnet build "xxx.csproj" -c Release -o /app/build FROM build AS publish RUN dotnet publish "xxx.csproj" -c Release -o /app/publish FROM base AS final WORKDIR /app COPY --from=publish /app/publish . ENTRYPOINT ["dotnet", "xxx.dll"]
System.DllNotFoundException: Unable to load shared library 'libdl' or one of its dependencies .NET Core 图片操作在 Linux/Docker 下的坑
免责声明:文章转载自《System.DllNotFoundException: Unable to load shared library 'libdl' or one of its dependencies .NET Core 图片操作在 Linux/Docker 下的坑》仅用于学习参考。如对内容有疑问,请及时联系本站处理。
上篇RabbitMQ---6、客户端 API 的简介idea开启springboot热部署,修改文件即时生效下篇
宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=