I am using playwright in library mode, and everything works on my dev machine. I can't get it to work in CI.
I want to pack my app and playwright into a docker image, where the base image is mcr.microsoft.com/dotnet/sdk
. When I publish my app inside the container, it also places .playwright/
and playwright.ps1
in the same path as my app.
But I get missing file errors when running pwsh playwright.ps1 install
inside the container (during the build). Obviously I'm missing various steps.
Does someone have a sample Dockerfile
which shows how to install an app and playwright in a docker container?
This thread is trying to answer question "How to install an app and playwright in a docker container?"
Here is the link to my github repo: https://github.com/rasupit/PlaywrightNet
and here is the issue i have raised which did not get a satisfactory answer. https://github.com/microsoft/playwright-dotnet/issues/2619
Rayrun is a community for QA engineers. I am constantly looking for new ways to add value to people learning Playwright and other browser automation frameworks. If you have feedback, email [email protected].