dockerfile

#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/aspnet:5.0-buster-slim AS base
WORKDIR /app

RUN apt-get update &&
apt-get install wget &&
apt-get install yum &&
yum update &&
yum install libgdiplus-devel -y &&
ln -s /usr/lib64/libgdiplus.so /usr/lib/gdiplus.dll &&
ln -s /usr/lib64/libgdiplus.so /usr/lib64/gdiplus.dll

EXPOSE 80
EXPOSE 443

WORKDIR /app
COPY . /app
ENTRYPOINT ["dotnet", "TFCMS.dll"]

更多精彩文章请关注我们的微信公众号FocusDotCore

原文地址:https://www.cnblogs.com/tianfengcc/p/14333602.html