update dotnet version in Dockerfile

(and remove unused docer config from sodoffmmo.csproj)
This commit is contained in:
Robert Paciorek 2025-06-27 14:37:45 +00:00
parent a3b36c0522
commit d0f3e2a5e6
2 changed files with 2 additions and 5 deletions

View File

@ -1,5 +1,5 @@
# Use the official .NET SDK image for building the application
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
WORKDIR /src
# Copy the source code
@ -9,7 +9,7 @@ COPY . .
RUN dotnet build -c Release -o /app
# Create clean run environment (without source and sdk)
# FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base
# FROM mcr.microsoft.com/dotnet/runtime:9.0 AS base
# WORKDIR /app
# COPY --from=build /app .

View File

@ -5,15 +5,12 @@
<TargetFramework>net9.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
<DockerfileRunArguments>-p 9933:9933</DockerfileRunArguments>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="ComponentAce.Compression.Libs.zlib" Version="1.0.4" />
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="9.0.6" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="9.0.6" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.2" />
</ItemGroup>
<ItemGroup>