Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save acraven/b9775d53d5e3389511ff033f5d193921 to your computer and use it in GitHub Desktop.
Save acraven/b9775d53d5e3389511ff033f5d193921 to your computer and use it in GitHub Desktop.
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-alpine AS build
WORKDIR /build
COPY ./Microservice.OutsideIn.Tests/Microservice.OutsideIn.Tests.csproj ./Microservice.OutsideIn.Tests/Microservice.OutsideIn.Tests.csproj
RUN dotnet restore ./Microservice.OutsideIn.Tests/Microservice.OutsideIn.Tests.csproj
COPY . .
RUN dotnet build --no-incremental -c Release ./Microservice.OutsideIn.Tests/Microservice.OutsideIn.Tests.csproj
CMD ["dotnet", "test", "-c", "Release", "./Microservice.OutsideIn.Tests/Microservice.OutsideIn.Tests.csproj"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment