From c5034a8e67000f2e8cb5c155c3cf7765bc091394 Mon Sep 17 00:00:00 2001 From: Gervasio Marchand Date: Wed, 13 Dec 2023 21:31:54 -0300 Subject: [PATCH] Upgrade to .net8 --- Dockerfile | 4 ++-- src/FakeRelay.Cli/FakeRelay.Cli.csproj | 2 +- src/FakeRelay.Core/FakeRelay.Core.csproj | 2 +- src/FakeRelay.Web/FakeRelay.Web.csproj | 6 +++--- src/FakeRelay.Web/Program.cs | 1 + 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 07af230..00d17ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,12 @@ # syntax=docker/dockerfile:1 ARG ARCH= -FROM mcr.microsoft.com/dotnet/sdk:6.0.411-alpine3.18-${ARCH} AS builder +FROM mcr.microsoft.com/dotnet/sdk:8.0.100-1-alpine3.18-${ARCH} AS builder WORKDIR /src COPY src /src/ RUN dotnet publish -c Release /src/FakeRelay.sln -o /app -FROM mcr.microsoft.com/dotnet/aspnet:6.0.19-alpine3.18-${ARCH} +FROM mcr.microsoft.com/dotnet/aspnet:8.0.0-alpine3.18-${ARCH} VOLUME ["/data"] ENV CONFIG_PATH=/data/config.json COPY --from=builder /app /app diff --git a/src/FakeRelay.Cli/FakeRelay.Cli.csproj b/src/FakeRelay.Cli/FakeRelay.Cli.csproj index 010e655..0c7581c 100644 --- a/src/FakeRelay.Cli/FakeRelay.Cli.csproj +++ b/src/FakeRelay.Cli/FakeRelay.Cli.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net8.0 enable enable diff --git a/src/FakeRelay.Core/FakeRelay.Core.csproj b/src/FakeRelay.Core/FakeRelay.Core.csproj index e2562fc..80dc565 100644 --- a/src/FakeRelay.Core/FakeRelay.Core.csproj +++ b/src/FakeRelay.Core/FakeRelay.Core.csproj @@ -1,7 +1,7 @@ - net6.0 + net8.0 enable enable diff --git a/src/FakeRelay.Web/FakeRelay.Web.csproj b/src/FakeRelay.Web/FakeRelay.Web.csproj index 82f8670..a1bb794 100644 --- a/src/FakeRelay.Web/FakeRelay.Web.csproj +++ b/src/FakeRelay.Web/FakeRelay.Web.csproj @@ -4,12 +4,12 @@ - - + + - net6.0 + net8.0 enable enable diff --git a/src/FakeRelay.Web/Program.cs b/src/FakeRelay.Web/Program.cs index 0e0cbe8..5cdcff7 100644 --- a/src/FakeRelay.Web/Program.cs +++ b/src/FakeRelay.Web/Program.cs @@ -12,6 +12,7 @@ Config.Init(builder.Configuration.GetValue("CONFIG_PATH")); // Add services to the container. builder.Services.AddControllersWithViews(); +builder.Services.AddHttpLogging(_ => { }); builder.Services.Configure(options => {