Skip to content

Commit

Permalink
Upgrade to .net8
Browse files Browse the repository at this point in the history
  • Loading branch information
g3rv4 committed Dec 14, 2023
1 parent 4ed3f24 commit c5034a8
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/FakeRelay.Cli/FakeRelay.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/FakeRelay.Core/FakeRelay.Core.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/FakeRelay.Web/FakeRelay.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
<ProjectReference Include="..\FakeRelay.Core\FakeRelay.Core.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="prometheus-net.AspNetCore" Version="7.0.0" />
<ItemGroup>
<PackageReference Include="prometheus-net.AspNetCore" Version="8.2.0" />
</ItemGroup>

<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
Expand Down
1 change: 1 addition & 0 deletions src/FakeRelay.Web/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

// Add services to the container.
builder.Services.AddControllersWithViews();
builder.Services.AddHttpLogging(_ => { });

builder.Services.Configure<ForwardedHeadersOptions>(options =>
{
Expand Down

0 comments on commit c5034a8

Please sign in to comment.