From 720318ac85d9f223e01ce3af1cf9ab6bfe36a4d4 Mon Sep 17 00:00:00 2001 From: "peter.kneale" Date: Mon, 23 Dec 2024 14:31:58 +1100 Subject: [PATCH] Update docker files to dotnet 9 --- MicroSaas.sln.DotSettings.user | 2 +- src/Micro.Cli/Dockerfile | 4 ++-- src/Micro.Web/Dockerfile | 4 ++-- tests/Micro.Web.AcceptanceTests/Dockerfile | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/MicroSaas.sln.DotSettings.user b/MicroSaas.sln.DotSettings.user index c3c24f4b..75f54e62 100644 --- a/MicroSaas.sln.DotSettings.user +++ b/MicroSaas.sln.DotSettings.user @@ -3,7 +3,7 @@ <Assembly Path="C:\dev\projects\MicroSaas\tests\Micro.Modules.IntegrationTests\bin\Debug\net8.0\Micro.Translations.Application.dll" /> <Assembly Path="C:\Program Files\dotnet\shared\Microsoft.NETCore.App\8.0.4\System.Private.CoreLib.dll" /> </AssemblyExplorer> - C:\Users\pkne0634\AppData\Local\JetBrains\Rider2023.3\resharper-host\temp\Rider\vAny\CoverageData\_MicroSaas.-2053870454\Snapshot\snapshot.utdcvr + True 360D495D-4117-434D-BCFD-FA4CB2EEF296 diff --git a/src/Micro.Cli/Dockerfile b/src/Micro.Cli/Dockerfile index 05942821..c33a3e32 100644 --- a/src/Micro.Cli/Dockerfile +++ b/src/Micro.Cli/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base +FROM mcr.microsoft.com/dotnet/runtime:9.0 AS base USER $APP_UID WORKDIR /app -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 ["Micro.Cli/Micro.Cli.csproj", "Micro.Cli/"] diff --git a/src/Micro.Web/Dockerfile b/src/Micro.Web/Dockerfile index 7b6b45a4..8f78390e 100644 --- a/src/Micro.Web/Dockerfile +++ b/src/Micro.Web/Dockerfile @@ -1,10 +1,10 @@ -FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base USER $APP_UID WORKDIR /app EXPOSE 8080 EXPOSE 8081 -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 /workspace diff --git a/tests/Micro.Web.AcceptanceTests/Dockerfile b/tests/Micro.Web.AcceptanceTests/Dockerfile index f8614116..2a624e70 100644 --- a/tests/Micro.Web.AcceptanceTests/Dockerfile +++ b/tests/Micro.Web.AcceptanceTests/Dockerfile @@ -1,8 +1,8 @@ -FROM mcr.microsoft.com/dotnet/runtime:8.0 AS base +FROM mcr.microsoft.com/dotnet/runtime:9.0 AS base USER $APP_UID WORKDIR /app -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 ["tests/Micro.Web.AcceptanceTests/Micro.Web.AcceptanceTests.csproj", "tests/Micro.Web.AcceptanceTests/"]