2026-07-16 20:53:56 +00:00
|
|
|
FROM mcr.microsoft.com/dotnet/sdk:10.0-alpine AS build
|
|
|
|
|
WORKDIR /src
|
|
|
|
|
|
|
|
|
|
COPY *.slnx .
|
|
|
|
|
COPY Directory.Build.props .
|
|
|
|
|
COPY src/Heimdall.Domain.Primitives/*.csproj src/Heimdall.Domain.Primitives/
|
|
|
|
|
COPY src/Heimdall.Domain/*.csproj src/Heimdall.Domain/
|
|
|
|
|
COPY src/Heimdall.Application/*.csproj src/Heimdall.Application/
|
|
|
|
|
COPY src/Heimdall.Infrastructure/*.csproj src/Heimdall.Infrastructure/
|
|
|
|
|
COPY src/Heimdall.Agent/*.csproj src/Heimdall.Agent/
|
|
|
|
|
|
|
|
|
|
RUN dotnet restore src/Heimdall.Agent/Heimdall.Agent.csproj
|
|
|
|
|
|
|
|
|
|
COPY src/ src/
|
|
|
|
|
|
|
|
|
|
RUN dotnet publish src/Heimdall.Agent/Heimdall.Agent.csproj -c Release -o /app
|
|
|
|
|
|
|
|
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0-alpine AS runtime
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
2026-07-20 14:03:59 +00:00
|
|
|
RUN apk add --no-cache icu-libs libstdc++ ffmpeg krb5
|
2026-07-16 20:53:56 +00:00
|
|
|
|
|
|
|
|
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=false
|
2026-07-18 14:09:32 +00:00
|
|
|
ENV ASPNETCORE_URLS=http://+:8080
|
2026-07-16 20:53:56 +00:00
|
|
|
|
|
|
|
|
COPY --from=build /app .
|
|
|
|
|
|
2026-07-18 14:09:32 +00:00
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --start-period=15s --retries=3 \
|
|
|
|
|
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/healthz || exit 1
|
|
|
|
|
|
2026-07-16 20:53:56 +00:00
|
|
|
ENTRYPOINT ["dotnet", "Heimdall.Agent.dll"]
|