# Server/PWA: restore the complete project graph from locked dependencies. FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:0d99ebf1ccad15037b5c98c9fe8979d6b8dbac23812feae2277a0b277b5c5ffa AS build WORKDIR /src ARG VERSION=0.0.0-local COPY global.json Directory.Build.props Directory.Build.targets ./ COPY src/ ./src/ RUN dotnet restore src/Heimdall.Web/Heimdall.Web.csproj --locked-mode RUN dotnet publish src/Heimdall.Web/Heimdall.Web.csproj -c Release --no-restore -o /out -p:Version=$VERSION -p:ContinuousIntegrationBuild=true FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:d5633778c754e89a386882eddf8dbee6942447a8a4b8267c19cf1e1158d0b0ac WORKDIR /app RUN apt-get update -qq && apt-get install -y --no-install-recommends wget tzdata && rm -rf /var/lib/apt/lists/* ENV ASPNETCORE_URLS=http://+:8080 COPY --from=build /out/ ./ EXPOSE 8080 HEALTHCHECK --interval=30s --timeout=5s --start-period=60s CMD wget -q --spider http://localhost:8080/healthz || exit 1 ENTRYPOINT ["dotnet", "Heimdall.Web.dll"]