From a7a1459440a8078f39a2617aa7f33c3feefec208 Mon Sep 17 00:00:00 2001 From: Rico Suter Date: Sat, 14 Dec 2024 00:04:57 +0100 Subject: [PATCH] Improve Dockerfile --- src/HomeBlaze.Host/Things/SystemDiagnostics.cs | 3 +++ src/HomeBlaze/Dockerfile | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/HomeBlaze.Host/Things/SystemDiagnostics.cs b/src/HomeBlaze.Host/Things/SystemDiagnostics.cs index c237b1e..31fb087 100644 --- a/src/HomeBlaze.Host/Things/SystemDiagnostics.cs +++ b/src/HomeBlaze.Host/Things/SystemDiagnostics.cs @@ -42,6 +42,9 @@ public class SystemDiagnostics : PollingThing, IIconProvider, ILastUpdatedProvid [State("OperatingSystem")] public string OperatingSystem => RuntimeInformation.OSDescription; + [State("FrameworkDescription")] + public string FrameworkDescription => RuntimeInformation.FrameworkDescription; + [State] public int ProcessorCount { get; private set; } diff --git a/src/HomeBlaze/Dockerfile b/src/HomeBlaze/Dockerfile index e56c169..989df28 100644 --- a/src/HomeBlaze/Dockerfile +++ b/src/HomeBlaze/Dockerfile @@ -1,5 +1,5 @@ # Stage 1: Base image -FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:9.0 AS build +FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base WORKDIR /app EXPOSE 80 EXPOSE 443