-
Notifications
You must be signed in to change notification settings - Fork 749
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated the target frameworks for the microservice example projects t…
…o net6.0 to support the c# 10 requirement during build through the docker pipeline (#2677)
- Loading branch information
Showing
4 changed files
with
6 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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"] |
2 changes: 1 addition & 1 deletion
2
examples/MicroserviceExample/WorkerService/WorkerService.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters