diff --git a/.gitignore b/.gitignore index e882854..621e8d1 100644 --- a/.gitignore +++ b/.gitignore @@ -20,3 +20,5 @@ /handlenett-backend/serverless/HttpTriggerTest/Properties/serviceDependencies.local.json /handlenett-backend/serverless/functions/Properties/ServiceDependencies/local /handlenett-backend/serverless/functions/Properties/serviceDependencies.local.json +/handlenett-backend/web-api/HandlenettAPI/bin/Debug/net9.0 +/handlenett-backend/web-api/HandlenettAPI/bin/Release/net9.0 diff --git a/handlenett-backend/web-api/HandlenettAPI/Dockerfile b/handlenett-backend/web-api/HandlenettAPI/Dockerfile index ddca43e..12c7121 100644 --- a/handlenett-backend/web-api/HandlenettAPI/Dockerfile +++ b/handlenett-backend/web-api/HandlenettAPI/Dockerfile @@ -1,7 +1,7 @@ # See https://aka.ms/customizecontainer to learn how to customize your debug container and how Visual Studio uses this Dockerfile to build your images for faster debugging. # This stage is used when running from VS in fast mode (Default for Debug configuration) -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base USER app WORKDIR /app EXPOSE 8080 @@ -9,7 +9,7 @@ EXPOSE 8081 # This stage is used to build the service project -FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build ARG BUILD_CONFIGURATION=Release WORKDIR /src COPY ["HandlenettAPI.csproj", "."] diff --git a/handlenett-backend/web-api/HandlenettAPI/HandlenettAPI.csproj b/handlenett-backend/web-api/HandlenettAPI/HandlenettAPI.csproj index 047f6df..0c53007 100644 --- a/handlenett-backend/web-api/HandlenettAPI/HandlenettAPI.csproj +++ b/handlenett-backend/web-api/HandlenettAPI/HandlenettAPI.csproj @@ -1,7 +1,7 @@ - net8.0 + net9.0 enable enable aspnet-HandlenettAPI-39efbd44-be77-4d08-b4db-ce68e6249316 @@ -12,26 +12,26 @@ - - - - - + + + + + - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - + + + + + - +