Skip to content

Commit

Permalink
moved docker files to repo root
Browse files Browse the repository at this point in the history
  • Loading branch information
irongut committed Apr 15, 2021
1 parent 12eb282 commit 7382b6d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 20 deletions.
File renamed without changes.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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 ["src/CodeCoverageSummary/CodeCoverageSummary.csproj", "CodeCoverageSummary/"]
RUN dotnet restore CodeCoverageSummary/CodeCoverageSummary.csproj
COPY ["src/", "CodeCoverageSummary/"]
RUN dotnet build CodeCoverageSummary/CodeCoverageSummary.csproj -c Release -o /app/build

FROM build AS publish
RUN dotnet publish CodeCoverageSummary/CodeCoverageSummary.csproj -c Release -o /app/publish

FROM base AS final
WORKDIR /app
COPY --from=publish /app/publish .
ENTRYPOINT ["dotnet", "CodeCoverageSummary.dll"]
20 changes: 0 additions & 20 deletions src/CodeCoverageSummary/Dockerfile

This file was deleted.

0 comments on commit 7382b6d

Please sign in to comment.