← Back to Discord Forum

Install in docker container

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?"

3 replies

Hi I'm interested in this topic. I feel that there is no complete guidance on how to setup the project. I have play around on this by having to install playwright inside the code but I feel that this is not optimal; as it should be packed while building the app docker image.


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

Related Discord Threads

AboutQuestionsDiscord ForumBrowser ExtensionTagsQA Jobs

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 luc@ray.run.