This commit is contained in:
EduardoSantanaSeverino 2022-10-26 12:17:32 -04:00
Родитель 4324248564
Коммит e3d8e0b0f9
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1,4 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /src
COPY ["src/AbpCompanyName.AbpProjectName.Web.Host/AbpCompanyName.AbpProjectName.Web.Host.csproj", "src/AbpCompanyName.AbpProjectName.Web.Host/"]
@ -18,7 +18,7 @@ COPY ["src/AbpCompanyName.AbpProjectName.EntityFrameworkCore", "src/AbpCompanyNa
WORKDIR "/src/src/AbpCompanyName.AbpProjectName.Web.Host"
RUN dotnet publish -c Release -o /publish --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:5.0
FROM mcr.microsoft.com/dotnet/aspnet:6.0
EXPOSE 80
WORKDIR /app
COPY --from=build /publish .