From e36113ba7c11664e9b3aac498f884936fc69275f Mon Sep 17 00:00:00 2001 From: wtp <1813748440@qq.com> Date: Tue, 31 Jan 2023 11:50:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9sdk=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- GDZZ.sln | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index db7e3d8..30e61d6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ -FROM mcr.microsoft.com/dotnet/aspnet:6.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443 @@ -15,7 +15,7 @@ RUN ln -s /usr/lib/libgdiplus.so /usr/lib/gdiplus.dll #COPY msyhbd.ttc /usr/share/fonts/msyhbd.tt #COPY msyhl.ttc /usr/share/fonts/msyhl.tt -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /src COPY ["GDZZ.Web.Entry/GDZZ.Web.Entry.csproj", "GDZZ.Web.Entry/"] COPY ["GDZZ.Web.Core/GDZZ.Web.Core.csproj", "GDZZ.Web.Core/"] diff --git a/GDZZ.sln b/GDZZ.sln index 7ff1d87..f4e0e13 100644 --- a/GDZZ.sln +++ b/GDZZ.sln @@ -17,7 +17,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "GDZZ.CodeFirst", "GDZZ.Code EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Docker", "Docker", "{DFF1AFDC-3203-4914-AAFD-9303BC953C7E}" ProjectSection(SolutionItems) = preProject - Dockerfile.txt = Dockerfile.txt + Dockerfile = Dockerfile EndProjectSection EndProject Global