Add distributed F# monitoring platform
Some checks failed
CI / build-test (push) Has been cancelled
CI / containers (push) Has been cancelled

This commit is contained in:
Codex
2026-08-09 18:22:24 +03:00
parent cf8c51e3e8
commit 8ec7ee2ec9
27 changed files with 647 additions and 84 deletions

16
Dockerfile.server Normal file
View File

@@ -0,0 +1,16 @@
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore src/IpCheck.Server/IpCheck.Server.fsproj
RUN dotnet publish src/IpCheck.Server/IpCheck.Server.fsproj -c Release -o /app --no-restore
FROM mcr.microsoft.com/dotnet/aspnet:10.0 AS runtime
WORKDIR /app
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
COPY --from=build /app .
COPY src/IpCheck.Server/migrations ./migrations
USER 10001:10001
ENV ASPNETCORE_URLS=http://+:8080
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=10s --retries=3 CMD curl --fail --silent http://localhost:8080/healthz || exit 1
ENTRYPOINT ["dotnet", "IpCheck.Server.dll"]