gnmon_dashboard-Rolle (Rootless-Quadlet unter gn-dashboard 984, ASPNETCORE_URLS=127.0.0.1:8080), Containerfile aus MCR-Basisimages, Image-Transport per podman save/load (v0.1.0, ID 1b71e6d35069). keep-id verworfen (crun-Overlay-Rechtebefund), Default-Mapping wie alle GNMON-Dienste. GnAiEnvironmentDown-Regel (gn_ai_active_env == 0, 2m, critical) aus GNAI-001 M4 integriert; Suite gruen und idempotent. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
27 lines
968 B
Docker
27 lines
968 B
Docker
# GNMON-001 section 6: Blazor Server dashboard image.
|
|
# Multi-stage build from the MCR .NET images (not Docker Hub, so server
|
|
# side rebuilds stay possible even under Docker Hub rate limits).
|
|
# Runs as a non-root user; the rootless quadlet maps it onto the
|
|
# gn-dashboard host account (UID 984) via UserNS=keep-id.
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
|
|
# Restore first so the layer cache survives source edits.
|
|
COPY Ghostnet.Dashboard.csproj .
|
|
RUN dotnet restore Ghostnet.Dashboard.csproj
|
|
|
|
COPY . .
|
|
RUN dotnet publish Ghostnet.Dashboard.csproj -c Release -o /app --no-restore
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
|
WORKDIR /app
|
|
COPY --from=build /app .
|
|
|
|
# Non-root runtime user; keeps UID equal to the host workload account
|
|
# (gn-dashboard, 984) so host-side processes are attributable.
|
|
ENV ASPNETCORE_URLS=http://127.0.0.1:8080 \
|
|
DOTNET_GENERATE_ASPNET_KEY=true
|
|
USER 984:984
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["dotnet", "Ghostnet.Dashboard.dll"]
|