mirror of
https://github.com/irongut/CodeCoverageSummary.git
synced 2026-05-15 14:40:13 +02:00
moved docker files to repo root
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base
|
||||
WORKDIR /app
|
||||
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
|
||||
WORKDIR /src
|
||||
COPY ["CodeCoverageSummary/CodeCoverageSummary.csproj", "CodeCoverageSummary/"]
|
||||
RUN dotnet restore "CodeCoverageSummary/CodeCoverageSummary.csproj"
|
||||
COPY . .
|
||||
WORKDIR "/src/CodeCoverageSummary"
|
||||
RUN dotnet build "CodeCoverageSummary.csproj" -c Release -o /app/build
|
||||
|
||||
FROM build AS publish
|
||||
RUN dotnet publish "CodeCoverageSummary.csproj" -c Release -o /app/publish
|
||||
|
||||
FROM base AS final
|
||||
WORKDIR /app
|
||||
COPY --from=publish /app/publish .
|
||||
ENTRYPOINT ["dotnet", "CodeCoverageSummary.dll"]
|
||||
Reference in New Issue
Block a user