Skip to content

Commit f25537e

Browse files
author
Borja García Rodríguez
committed
dockerfiles and update nugets
1 parent 19460bb commit f25537e

6 files changed

Lines changed: 11 additions & 7 deletions

File tree

src/Services/Webhooks/Webhooks.API/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
1+
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
22
WORKDIR /app
33
EXPOSE 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
66
WORKDIR /src
77

88
# It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles

src/Web/WebStatus/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
1+
FROM mcr.microsoft.com/dotnet/aspnet:5.0 AS base
22
WORKDIR /app
33
EXPOSE 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
66
WORKDIR /src
77

88
# It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles

src/Web/WebStatus/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,5 +116,5 @@ void LogPackagesVersionInfo()
116116
public 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
}

src/Web/WebStatus/Startup.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

src/Web/WebStatus/WebStatus.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
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" />

src/Web/WebhookClient/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ WORKDIR /app
33
EXPOSE 80
44
EXPOSE 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
77
WORKDIR /src
88

99
# It's important to keep lines from here down to "COPY . ." identical in all Dockerfiles

0 commit comments

Comments
 (0)