Skip to content
Snippets Groups Projects
Dockerfile 319 B
FROM mcr.microsoft.com/dotnet/sdk:6.0 AS build
WORKDIR /test

COPY . . 
RUN dotnet test EncryptionTests/EncryptionTests.csproj

RUN dotnet build DummyClient/DummyClient.csproj -c Release -o /test/build

FROM mcr.microsoft.com/dotnet/runtime:6.0 AS base
COPY --from=build /test/build .

CMD ["dotnet", "DummyClient.dll"]