Dockerfile
FROM mcr.microsoft.com/dotnet/aspnet:3.1 AS base
# 設置默認時區
ENV TZ=Asia/Shanghai
# # http://mirrors.163.com/.help/debian.html
# ADD sources.list .
# # 安裝libgdiplus庫,用於Excel導出
# RUN mv sources.list /etc/apt/ && apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev
# 使用海外構建代替163
RUN apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev
WORKDIR /app
EXPOSE 80
COPY . .
ENTRYPOINT ["dotnet", "XXXX.dll"]