Skip to content

Commit 995bb37

Browse files
committed
Update docker images and target framework for projects to target .net 10
1 parent 73f575a commit 995bb37

4 files changed

Lines changed: 3 additions & 4 deletions

File tree

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<Project>
22
<PropertyGroup>
3+
<TargetFramework>net10.0</TargetFramework>
34
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
45
<Nullable>disable</Nullable>
56
</PropertyGroup>

src/BuslyCLI.Console/BuslyCLI.Console.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
<PropertyGroup>
44
<OutputType>Exe</OutputType>
5-
<TargetFramework>net9.0</TargetFramework>
65
<ImplicitUsings>enable</ImplicitUsings>
76
<DockerDefaultTargetOS>Linux</DockerDefaultTargetOS>
87
<RootNamespace>BuslyCLI</RootNamespace>

src/BuslyCLI.Console/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Use .NET 9 SDK to build
2-
FROM mcr.microsoft.com/dotnet/sdk:9.0.305 AS build
2+
FROM mcr.microsoft.com/dotnet/sdk:10.0.100 AS build
33
WORKDIR /src
44

55
# Copy project file and restore dependencies (better layer caching)
@@ -22,7 +22,7 @@ RUN dotnet publish "./BuslyCLI.Console/BuslyCLI.Console.csproj" \
2222
-p:SelfContained=true
2323

2424
# Use minimal runtime for smaller image size
25-
FROM mcr.microsoft.com/dotnet/runtime-deps:9.0-alpine AS final
25+
FROM mcr.microsoft.com/dotnet/runtime-deps:10.0-alpine AS final
2626
WORKDIR /app
2727

2828
# Copy published app

tests/BuslyCLI.Console.Tests/BuslyCLI.Console.Tests.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net9.0</TargetFramework>
54
<LangVersion>latest</LangVersion>
65
<ImplicitUsings>enable</ImplicitUsings>
76
<IsPackable>false</IsPackable>

0 commit comments

Comments
 (0)