Updated the target frameworks for the microservice example projects to net6.0 to support the c# 10 requirement during build through the docker pipeline (#2677)
This commit is contained in:
parent
9e83587a55
commit
d7ea809ef6
|
|
@ -1,10 +1,10 @@
|
|||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
RUN dotnet publish ./examples/MicroserviceExample/WebApi -c Release -o /out -p:IntegrationBuild=true
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS runtime
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS runtime
|
||||
WORKDIR /app
|
||||
COPY --from=build /out ./
|
||||
ENTRYPOINT ["dotnet", "WebApi.dll"]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Web">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
|
||||
FROM mcr.microsoft.com/dotnet/sdk:6.0-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
COPY . ./
|
||||
RUN dotnet publish ./examples/MicroserviceExample/WorkerService -c Release -o /out -p:IntegrationBuild=true
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-alpine AS runtime
|
||||
FROM mcr.microsoft.com/dotnet/aspnet:6.0-alpine AS runtime
|
||||
WORKDIR /app
|
||||
COPY --from=build /out ./
|
||||
ENTRYPOINT ["dotnet", "WorkerService.dll"]
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk.Worker">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netcoreapp3.1</TargetFramework>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
|
|
|||
Loading…
Reference in New Issue