FROM mcr.microsoft.com/dotnet/sdk:9.0-alpine AS build WORKDIR /app COPY . . RUN dotnet restore RUN dotnet publish -c Release -o out FROM mcr.microsoft.com/dotnet/aspnet:9.0-alpine WORKDIR /app COPY --from=build /app/out . CMD ["./csharp"]