Modernize project targets and Docker test flow
This commit is contained in:
15
Dockerfile
Normal file
15
Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM mcr.microsoft.com/dotnet/sdk:10.0 AS restore
|
||||
WORKDIR /src
|
||||
|
||||
COPY VirtualFS.sln ./
|
||||
COPY VirtualFS/VirtualFS.csproj VirtualFS/
|
||||
COPY VirtualFS.Tests/VirtualFS.Tests.csproj VirtualFS.Tests/
|
||||
|
||||
RUN dotnet restore VirtualFS.sln
|
||||
|
||||
FROM restore AS build
|
||||
COPY . .
|
||||
RUN dotnet build VirtualFS.sln -c Release --no-restore
|
||||
|
||||
FROM build AS test
|
||||
RUN dotnet test VirtualFS.Tests/VirtualFS.Tests.csproj -c Release --no-build
|
||||
Reference in New Issue
Block a user