From 2da10fe7b2d4591fccc366c85d6f81ed8e064812 Mon Sep 17 00:00:00 2001 From: Dan Cojocaru Date: Wed, 24 Jun 2026 05:16:30 +0200 Subject: [PATCH] Update to net9.0 in Dockerfile --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c1b7878..8184318 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # https://hub.docker.com/_/microsoft-dotnet -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build WORKDIR /source # copy csproj and restore as distinct layers @@ -14,10 +14,10 @@ COPY server/. ./server/ COPY scraper/. ./scraper/ COPY ConsoleTest/. ./ConsoleTest/ WORKDIR /source/server -RUN dotnet publish -f net8.0 -c release -o /app --no-restore +RUN dotnet publish -f net9.0 -c release -o /app --no-restore # final stage/image -FROM mcr.microsoft.com/dotnet/aspnet:8.0 +FROM mcr.microsoft.com/dotnet/aspnet:9.0 WORKDIR /app COPY --from=build /app ./ ENV INSIDE_DOCKER=true