ARG REPO=mcr.microsoft.com/dotnet/aspnet # Installer image FROM mcr.microsoft.com/azurelinux/base/core:3.0 AS installer RUN tdnf install -y \ ca-certificates \ unzip \ && tdnf clean all # Retrieve Aspire Dashboard RUN dotnet_aspire_version=13.6.0-preview.1.26424.1 \ && curl --fail --show-error --location --output aspire_dashboard.zip https://ci.dot.net/public/aspire/$dotnet_aspire_version/aspire-dashboard-linux-x64.zip \ && aspire_dashboard_sha512='9a78566c596209e69e3bb1f8b26cb2c66283ba2c271612a3b3bf6a9b59d5f4478e569e740857619d4a1191d5431c2b32c640d18b9f86100544f623b70c6e7f97' \ && echo "$aspire_dashboard_sha512 aspire_dashboard.zip" | sha512sum -c - \ && mkdir --parents /app \ && unzip aspire_dashboard.zip -d /app \ && rm aspire_dashboard.zip # Aspire Dashboard image FROM $REPO:8.0.30-azurelinux3.0-distroless-extra-amd64 WORKDIR /app COPY --from=installer /app . ENV \ # Unset ASPNETCORE_HTTP_PORTS from base image ASPNETCORE_HTTP_PORTS= \ # Aspire Dashboard environment variables ASPNETCORE_URLS=http://+:18888 \ DOTNET_DASHBOARD_OTLP_ENDPOINT_URL=http://+:18889 \ DOTNET_DASHBOARD_OTLP_HTTP_ENDPOINT_URL=http://+:18890 \ DOTNET_DASHBOARD_MCP_ENDPOINT_URL=http://+:18891 ENTRYPOINT [ "dotnet", "/app/Aspire.Dashboard.dll" ]