We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d6e442 commit 533bf9dCopy full SHA for 533bf9d
Dockerfile
@@ -0,0 +1,22 @@
1
+# Use the official .NET SDK image for building and running tests
2
+FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
3
+
4
+WORKDIR /app
5
6
+# Copy csproj and restore as distinct layers
7
+COPY *.sln .
8
+COPY playwright-csharp-ui-tests/*.csproj ./playwright-csharp-ui-tests/
9
+RUN dotnet restore
10
11
+# Copy the rest of the source code
12
+COPY playwright-csharp-ui-tests/. ./playwright-csharp-ui-tests/
13
14
+WORKDIR /app/playwright-csharp-ui-tests
15
16
+# Install Playwright browsers
17
+RUN dotnet tool install --global Microsoft.Playwright.CLI \
18
+ && export PATH="$PATH:/root/.dotnet/tools" \
19
+ && playwright install
20
21
+# Build and run tests
22
+ENTRYPOINT ["dotnet", "test"]
0 commit comments