Rayrun
← Back to Discord Forum

How to install playwright inside distroless/minimal

sylvesteraswinposted in #help-playwright
Open in Discord
sylvesteraswin

Hello, Is there a way to install playwright binaries inside distroless/minimal.

This is the only image we can use for production, so I am not sure how to install the binaries without apt-get in the OS.

Thanks for your help

This thread is trying to answer question "Is there a way to install playwright binaries inside distroless/minimal without using `apt-get` in the OS?"

4 replies

This is not possible, browsers require a lot of dependencies to run.

sylvesteraswin

Is it possible to install the deps in a build docker and copy thse lib files inside my actual docker? will this work?

then you end up at our official docker image: https://playwright.dev/docs/docker

sylvesteraswin

We have a requirement to use only mariner distroless images, this is why I am having issues building this docker

Related Discord Threads

TwitterGitHubLinkedIn
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.