File tree Expand file tree Collapse file tree
Services/Webhooks/Webhooks.API Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/core/ aspnet:3.1 AS base
1+ FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
22WORKDIR /app
33EXPOSE 80
44
5- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 AS build
5+ FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
66WORKDIR /src
77
88# It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles
Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/core/ aspnet:3.1 AS base
1+ FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
22WORKDIR /app
33EXPOSE 80
44
5- FROM mcr.microsoft.com/dotnet/core/ sdk:3.1 AS build
5+ FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
66WORKDIR /src
77
88# It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles
Original file line number Diff line number Diff line change @@ -116,5 +116,5 @@ void LogPackagesVersionInfo()
116116public class Program
117117{
118118 private static readonly string _namespace = typeof ( Startup ) . Namespace ;
119- public static readonly string AppName = _namespace . Substring ( _namespace . LastIndexOf ( '.' , _namespace . LastIndexOf ( '.' ) - 1 ) + 1 ) ;
119+ public static readonly string AppName = _namespace ;
120120}
Original file line number Diff line number Diff line change @@ -30,7 +30,10 @@ public void ConfigureServices(IServiceCollection services)
3030 services . AddHealthChecks ( )
3131 . AddCheck ( "self" , ( ) => HealthCheckResult . Healthy ( ) ) ;
3232
33- services . AddHealthChecksUI ( ) ;
33+ services
34+ . AddHealthChecksUI ( )
35+ . AddInMemoryStorage ( ) ;
36+
3437 services . AddMvc ( )
3538 . SetCompatibilityVersion ( CompatibilityVersion . Version_3_0 ) ;
3639 }
Original file line number Diff line number Diff line change 1010 <ItemGroup >
1111 <PackageReference Include =" AspNetCore.HealthChecks.UI.Client" Version =" 3.1.2" />
1212 <PackageReference Include =" AspNetCore.HealthChecks.UI" Version =" 3.1.3" />
13+ <PackageReference Include =" AspNetCore.HealthChecks.UI.InMemory.Storage" Version =" 3.1.2" />
1314 <PackageReference Include =" AspNetCore.HealthChecks.Uris" Version =" 3.1.2" />
1415 <PackageReference Include =" Microsoft.ApplicationInsights.AspNetCore" Version =" 2.16.0" />
1516 <PackageReference Include =" Microsoft.ApplicationInsights.DependencyCollector" Version =" 2.16.0" />
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ WORKDIR /app
33EXPOSE 80
44EXPOSE 443
55
6- FROM mcr.microsoft.com/dotnet/core/ sdk:5.0 AS build
6+ FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
77WORKDIR /src
88
99# It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles
You can’t perform that action at this time.
0 commit comments