2026-10-20 02:29:19 +02:00
|
|
|
# Server/PWA: restore the complete project graph from locked dependencies.
|
|
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:0d99ebf1ccad15037b5c98c9fe8979d6b8dbac23812feae2277a0b277b5c5ffa AS build
|
2026-07-16 20:53:56 +00:00
|
|
|
WORKDIR /src
|
2026-08-12 11:29:03 +02:00
|
|
|
ARG VERSION=0.0.0-local
|
2026-10-20 02:29:19 +02:00
|
|
|
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
|
2026-08-12 11:29:03 +02:00
|
|
|
|
2026-10-20 02:29:19 +02:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:d5633778c754e89a386882eddf8dbee6942447a8a4b8267c19cf1e1158d0b0ac
|
2026-07-16 20:53:56 +00:00
|
|
|
WORKDIR /app
|
2026-10-20 02:29:19 +02:00
|
|
|
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/ ./
|
2026-07-16 20:53:56 +00:00
|
|
|
EXPOSE 8080
|
2026-10-20 02:29:19 +02:00
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=60s CMD wget -q --spider http://localhost:8080/healthz || exit 1
|
2026-07-20 17:22:56 +00:00
|
|
|
ENTRYPOINT ["dotnet", "Heimdall.Web.dll"]
|