Modernize project targets and Docker test flow

This commit is contained in:
2026-02-28 17:27:20 +01:00
parent 02d95583e9
commit 654bcd8a1b
8 changed files with 161 additions and 122 deletions

15
Dockerfile Normal file
View 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