# Normally, we would use a multi-stage build, but for simplicity, we are using a single stage here. FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build WORKDIR /src COPY . . RUN dotnet restore \ && dotnet publish -c release -o /app WORKDIR /app ENTRYPOINT ["dotnet", "service.dll"]