Files
RuvdsIpCheck/Dockerfile.agent
Codex 8ec7ee2ec9
Some checks failed
CI / build-test (push) Has been cancelled
CI / containers (push) Has been cancelled
Add distributed F# monitoring platform
2026-08-09 18:22:24 +03:00

12 lines
371 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
WORKDIR /src
COPY . .
RUN dotnet restore src/IpCheck.Agent/IpCheck.Agent.fsproj
RUN dotnet publish src/IpCheck.Agent/IpCheck.Agent.fsproj -c Release -o /app --no-restore
FROM mcr.microsoft.com/dotnet/runtime:10.0 AS runtime
WORKDIR /app
COPY --from=build /app .
USER 10001:10001
ENTRYPOINT ["dotnet", "IpCheck.Agent.dll"]