Skip to content

Commit 7d6e442

Browse files
committed
Added docker file for exeuction
1 parent d0a7de1 commit 7d6e442

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Dockerfile.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Dockerfile for running Playwright UI tests in CI/CD
2+
FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build
3+
4+
# Install dependencies for Chromium browser
5+
RUN apt-get update && apt-get install -y \
6+
wget gnupg libnss3 libatk1.0-0 libatk-bridge2.0-0 \
7+
libcups2 libdrm2 libxkbcommon0 libxcomposite1 \
8+
libxdamage1 libxfixes3 libxrandr2 libgbm1 \
9+
libasound2 libpangocairo-1.0-0 libgtk-3-0
10+
11+
WORKDIR /app
12+
13+
COPY . .
14+
15+
RUN dotnet tool restore
16+
RUN dotnet restore
17+
RUN dotnet playwright install
18+
RUN dotnet build --configuration Release
19+
RUN dotnet test --configuration Release --logger "console;verbosity=detailed" --results-directory Reports/Allure/results
20+
21+
CMD ["dotnet", "test", "--configuration", "Release"]

0 commit comments

Comments
 (0)