Update Dockerfile version
This commit is contained in:
Родитель
4324248564
Коммит
e3d8e0b0f9
|
@ -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 .
|
||||
|
|
Загрузка…
Ссылка в новой задаче