Skip to content

Commit 549d47a

Browse files
committed
Update Dockerfiles to use .NET 10.0 base images
Both Linux and Windows Dockerfiles now use .NET 10.0 for the SDK and ASP.NET runtime images, replacing the previous .NET 9.0 versions. This upgrade ensures the application is built and executed on the latest .NET platform. #95
1 parent 65b6cd3 commit 549d47a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

docker/Dockerfile.Linux

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG BUILD_CONFIGURATION=Release
22
ARG APP_VERSION="1.0.0"
33

4-
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build
4+
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
55
ARG BUILD_CONFIGURATION
66
ARG APP_VERSION
77

@@ -20,7 +20,7 @@ ARG BUILD_CONFIGURATION
2020
ARG APP_VERSION
2121
RUN dotnet publish "./Console.csproj" -c ${BUILD_CONFIGURATION} -o /app/publish /p:UseAppHost=false /p:Version=${APP_VERSION} --runtime "linux-x64"
2222

23-
FROM mcr.microsoft.com/dotnet/aspnet:9.0
23+
FROM mcr.microsoft.com/dotnet/aspnet:10.0
2424
USER app
2525
WORKDIR /app
2626
EXPOSE 6264

docker/Dockerfile.Windows

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
ARG BUILD_CONFIGURATION=Release
22
ARG APP_VERSION="1.0.0"
33

4-
FROM mcr.microsoft.com/dotnet/sdk:9.0-nanoserver-ltsc2022 AS build
4+
FROM mcr.microsoft.com/dotnet/sdk:10.0-nanoserver-ltsc2022 AS build
55
ARG BUILD_CONFIGURATION
66
ARG APP_VERSION
77

@@ -22,7 +22,7 @@ ARG BUILD_CONFIGURATION
2222
ARG APP_VERSION
2323
RUN dotnet publish "./Console.csproj" -c %BUILD_CONFIGURATION% -o /app/publish /p:UseAppHost=false /p:Version=%APP_VERSION% --runtime "win-x64"
2424

25-
FROM mcr.microsoft.com/dotnet/aspnet:9.0-nanoserver-ltsc2022
25+
FROM mcr.microsoft.com/dotnet/aspnet:10.0-nanoserver-ltsc2022
2626
WORKDIR /app
2727
EXPOSE 6264
2828
COPY --from=publish /app/publish .

0 commit comments

Comments
 (0)