2026-10-20 02:29:19 +02:00
|
|
|
# Server/PWA: restore the complete project graph from locked dependencies.
|
2026-11-04 13:33:30 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0-noble@sha256:de4fe90a98845d75910b9769662465c84de1a934665c431279d1382b2bddc02b 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/
|
2026-10-26 12:48:23 +01:00
|
|
|
COPY install/ ./install/
|
2026-10-20 02:29:19 +02:00
|
|
|
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-11-04 13:33:30 +01:00
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0-noble@sha256:de0ee358cdd672f7017a003bed21e9ac9ed48a27c922a59b18175b6e82fa7fee
|
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"]
|