From a6213d39541195cf3c99002269cdb440d9c67b9a Mon Sep 17 00:00:00 2001 From: Ayrat Hudaygulov Date: Tue, 15 Aug 2023 11:58:37 +0100 Subject: [PATCH] upgraded to net7 (#11) --- Directory.Build.props | 2 +- Dockerfile | 4 ++-- src/Grinder.DataAccess/Grinder.DataAccess.csproj | 2 +- src/Grinder.Farmer/Grinder.Farmer.fsproj | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 6be0b35..ac56931 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -1,6 +1,6 @@  - net5 + net7.0 false true true diff --git a/Dockerfile b/Dockerfile index cb7fb05..eb13de8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build-dotnet +FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build-dotnet WORKDIR /app # Copy csproj and restore as distinct layers COPY *.sln ./ @@ -22,7 +22,7 @@ RUN dotnet test -c Release -r linux-x64 -o out --no-restore --verbosity normal RUN dotnet publish -r linux-x64 -c Release -o out # Build runtime image -FROM mcr.microsoft.com/dotnet/runtime:5.0 +FROM mcr.microsoft.com/dotnet/runtime:7.0 EXPOSE 80 diff --git a/src/Grinder.DataAccess/Grinder.DataAccess.csproj b/src/Grinder.DataAccess/Grinder.DataAccess.csproj index c612362..9fd332e 100644 --- a/src/Grinder.DataAccess/Grinder.DataAccess.csproj +++ b/src/Grinder.DataAccess/Grinder.DataAccess.csproj @@ -1,7 +1,7 @@  - net5 + net7.0 true diff --git a/src/Grinder.Farmer/Grinder.Farmer.fsproj b/src/Grinder.Farmer/Grinder.Farmer.fsproj index 706d14c..9695fa1 100644 --- a/src/Grinder.Farmer/Grinder.Farmer.fsproj +++ b/src/Grinder.Farmer/Grinder.Farmer.fsproj @@ -2,7 +2,7 @@ Exe - net5.0 + net7.0