Files
Alexandru-Victor Macocian 69fd4bfb62 Setup Robin base files
Setup base files for Robin monitoring service
2025-11-27 17:37:28 +01:00

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"]