mirror of
https://github.com/ysoftdevs/Theatrical-Players-Refactoring-Kata.git
synced 2026-03-26 11:21:52 +01:00
Added Dockerfile for csharp project to be able to run tests in container
This commit is contained in:
13
csharp/Dockerfile
Normal file
13
csharp/Dockerfile
Normal file
@@ -0,0 +1,13 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:5.0-alpine as build
|
||||
WORKDIR /app
|
||||
|
||||
COPY *.sln .
|
||||
COPY TheatricalPlayersRefactoringKata/*.csproj ./TheatricalPlayersRefactoringKata/
|
||||
COPY TheatricalPlayersRefactoringKata.Tests/*.csproj ./TheatricalPlayersRefactoringKata.Tests/
|
||||
RUN dotnet restore
|
||||
|
||||
COPY . .
|
||||
RUN dotnet build
|
||||
|
||||
FROM build AS test
|
||||
RUN dotnet test --logger:console;verbosity=detailed
|
||||
Reference in New Issue
Block a user