beganovich / snappdf

Convert webpages or HTML into the PDF file using Chromium-powered browsers.
MIT License
187 stars 15 forks source link

Dockerized chromium support #41

Open MichelJonkman opened 4 months ago

MichelJonkman commented 4 months ago

It would be awesome if we could use a docker container for the chromium instance so that it can be kept up-to-date more easily and the dependencies won't cause issues on the server.

Is this already possible or could support be added?

beganovich commented 4 months ago

Hi there,

Thanks for reaching out.

What would be a use case for this? Running snappdf outside of containers and Chrome inside of containers?

MichelJonkman commented 4 months ago

Yes, exactly, Gotenberg offers a similar solution but this package seems much more lightweight and I don't need more than this package offers

beganovich commented 4 months ago

Yeh, Gotenberg is quite different because everything runs in containers.

For now, I suggest setting cron and letting it upgrade Chrome every X minutes.

eminos commented 1 month ago

I support this FR. It seems much simpler to install and keep updated a dockerized Chrome instance, Browserless for example, than to force a local Chrome/ium install, with all the dependencies, etc... Probably more secure too.