Skip to content

cfelstead/PlaywrightNetInDocker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PlaywrightNetInDocker

Changes that need to be made in order for the project to work out of the box.

PlaywrightNet.csproj Add: <PlaywrightPlatform>Linux</PlaywrightPlatform>

Inside Program.cs (or appropriate place) Add and call:

static void PerformInitialPlaywrightInstall()
{
    var exitCode = Microsoft.Playwright.Program.Main(new[] { "install", "--with-deps", "chromium" });
    if (exitCode != 0)
    {
        throw new Exception($"Playwright exited with code {exitCode}");
    }
}

Make sure you run headless

Dockerfile is unchanged

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 80.1%
  • Dockerfile 19.9%