From aad171c022c61394a67d0c8a4a010058847e9d86 Mon Sep 17 00:00:00 2001 From: Christian de Jonge Date: Tue, 26 Sep 2023 13:31:04 +0200 Subject: [PATCH] Update pipeline to net7 --- .github/workflows/runMigrations.yml | 2 +- backend/Dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/runMigrations.yml b/.github/workflows/runMigrations.yml index 8275f7bf2..7ed1b8ea1 100644 --- a/.github/workflows/runMigrations.yml +++ b/.github/workflows/runMigrations.yml @@ -45,7 +45,7 @@ jobs: - name: Set up .NET uses: actions/setup-dotnet@v1 with: - dotnet-version: "6.x.x" + dotnet-version: "7.x.x" - name: Build project and dependencies run: dotnet build diff --git a/backend/Dockerfile b/backend/Dockerfile index 188b7f317..ac8f7ed52 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -1,5 +1,5 @@ # https://hub.docker.com/_/microsoft-dotnet -FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build +FROM mcr.microsoft.com/dotnet/sdk:7.0 AS build WORKDIR /source # copy everything @@ -9,7 +9,7 @@ WORKDIR /source/api RUN dotnet publish -c release -o /app # final stage/image -FROM mcr.microsoft.com/dotnet/aspnet:6.0 +FROM mcr.microsoft.com/dotnet/aspnet:7.0 WORKDIR /app COPY --from=build /app ./ RUN apt-get update && apt-get install -y apt-utils libgdiplus libc6-dev