1- FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
1+ FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
2+ COPY ["src/coverage.cobertura.xml" , "/publish/sample.coverage.xml" ]
23WORKDIR /src
34COPY ["src/CodeCoverageSummary/CodeCoverageSummary.csproj" , "CodeCoverageSummary/" ]
45RUN dotnet restore CodeCoverageSummary/CodeCoverageSummary.csproj
56COPY ["src/CodeCoverageSummary" , "CodeCoverageSummary/" ]
6- COPY ["src/coverage.cobertura.xml" , "sample.coverage.xml" ]
7- RUN dotnet build CodeCoverageSummary/CodeCoverageSummary.csproj --configuration Release --no-restore --output /app/build
8- RUN dotnet publish CodeCoverageSummary/CodeCoverageSummary.csproj --configuration Release --no-restore --output /app/publish
7+ RUN dotnet publish CodeCoverageSummary/CodeCoverageSummary.csproj --configuration Release --no-restore --output /publish
98
109# Label the container
1110LABEL maintainer="Irongut <murray.dave@outlook.com>"
@@ -18,8 +17,8 @@ LABEL com.github.actions.description="A GitHub Action that reads Cobertura forma
1817LABEL com.github.actions.icon="book-open"
1918LABEL com.github.actions.color="purple"
2019
21- FROM mcr.microsoft.com/dotnet/runtime:5 .0 AS final
20+ FROM mcr.microsoft.com/dotnet/runtime:6 .0 AS final
2221WORKDIR /app
23- COPY --from=build /app/ publish .
24- COPY --from=build /src/sample.coverage.xml .
22+ COPY --from=build /publish .
23+ ENV DOTNET_EnableDiagnostics=0
2524ENTRYPOINT ["dotnet" , "/app/CodeCoverageSummary.dll" ]
0 commit comments