mirror of
https://github.com/AlexMacocian/ServerManagementUtils.git
synced 2026-07-15 15:19:58 +00:00
69fd4bfb62
Setup base files for Robin monitoring service
18 lines
418 B
Docker
18 lines
418 B
Docker
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS build
|
|
WORKDIR /src
|
|
|
|
# Copy csproj and restore as distinct layers
|
|
COPY robin/Robin.csproj ./robin/
|
|
RUN dotnet restore ./robin/Robin.csproj
|
|
|
|
# Copy everything else and build
|
|
COPY . .
|
|
WORKDIR /src/robin
|
|
RUN dotnet publish -c Release -o /app
|
|
|
|
# Build runtime image
|
|
FROM mcr.microsoft.com/dotnet/aspnet:10.0
|
|
WORKDIR /app
|
|
COPY --from=build /app .
|
|
ENTRYPOINT ["dotnet", "Robin.dll"]
|