From fdda726d5e85058f4ede69cf0ebba6e0e43e879d Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 5 Dec 2023 03:28:01 +0000 Subject: [PATCH] upgrades to .net 8 --- Dockerfile | 6 +++--- WeatherDashboard.Console/WeatherDashboard.Console.csproj | 6 +++--- WeatherDashboard.Web/WeatherDashboard.Web.csproj | 2 +- WeatherDashboard/WeatherDashboard.csproj | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2b34996..e072b08 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,13 +1,13 @@ -FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY . . RUN dotnet publish "WeatherDashboard.Web/WeatherDashboard.Web.csproj" -c Release -o /app/publish /p:UseAppHost=false -FROM mcr.microsoft.com/dotnet/aspnet:7.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base WORKDIR /app COPY --from=build /app/publish . -EXPOSE 80 +EXPOSE 8080 ENTRYPOINT ["dotnet", "WeatherDashboard.Web.dll"] \ No newline at end of file diff --git a/WeatherDashboard.Console/WeatherDashboard.Console.csproj b/WeatherDashboard.Console/WeatherDashboard.Console.csproj index 2279606..bf7402e 100644 --- a/WeatherDashboard.Console/WeatherDashboard.Console.csproj +++ b/WeatherDashboard.Console/WeatherDashboard.Console.csproj @@ -2,7 +2,7 @@ Exe - net7.0 + net8.0 enable enable @@ -23,8 +23,8 @@ - - + + diff --git a/WeatherDashboard.Web/WeatherDashboard.Web.csproj b/WeatherDashboard.Web/WeatherDashboard.Web.csproj index e65e64c..2c9ab84 100644 --- a/WeatherDashboard.Web/WeatherDashboard.Web.csproj +++ b/WeatherDashboard.Web/WeatherDashboard.Web.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable diff --git a/WeatherDashboard/WeatherDashboard.csproj b/WeatherDashboard/WeatherDashboard.csproj index 51eb283..6d0c7e5 100644 --- a/WeatherDashboard/WeatherDashboard.csproj +++ b/WeatherDashboard/WeatherDashboard.csproj @@ -1,7 +1,7 @@ - net7.0 + net8.0 enable enable