playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature]: Publish Docker images containing only one browser

Open Llois41 opened this issue 1 year ago • 2 comments

🚀 Feature Request

I would love to see additionally provided images which only contain one browser each, something like playwright-chromium, playwright-firefox and playwright-webkit.

Example

No response

Motivation

Using https://hub.docker.com/r/microsoft/playwright brings firefox, webkit and chrome which results in a whopping image size of ~2.24GB (v1.43). In some scenarios not all three browsers are needed and by using a smaller image we could save up some time, chache size and network traffic.

Llois41 avatar Jul 17 '24 13:07 Llois41

To make it complete, we should then have all possible combinations published:

  • playwright (all browsers)
  • playwright-chromium
  • playwright-firefox
  • playwright-webkit
  • playwright-chromium-firefox
  • playwright-chromium-webkit
  • playwright-firefox-webkit
  • playwright-none (with no browsers...?)

gskierk avatar Aug 10 '24 12:08 gskierk

Would be great to have. Our docker images reach 2.5Gb for a very simple spring-boot application. This can be reduced by a lot.

As a workarournd until you implement this, can you please give us some commands to run in our dockerfiles to rm the necessary files in order to keep one browser only? Is this possible in the first place?

Thanks in advance!

alkismavridis avatar Dec 02 '24 14:12 alkismavridis

we have the same issue in our org. the playwright dependency currently explodes the jar/tar size and slowing down deployments when pushing the images to a remote server. In our case chrome alone would be sufficient, no need to support all browsers.

networkgangster avatar Feb 04 '25 09:02 networkgangster

In a first iteration, I think an image without any browsers and some instruction for manually adding chrome/webkit/... would be lovely.

RozbehSharahi avatar Jul 28 '25 15:07 RozbehSharahi