Add distributed F# monitoring platform
This commit is contained in:
16
Dockerfile.server
Normal file
16
Dockerfile.server
Normal 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"]
|
||||
Reference in New Issue
Block a user