Sign inSign up

vsix/prerender

By vsix

•Updated about 7 years ago

Prerender container with memory-cache plugin built on Alpine

Image
1

1.2K

vsix/prerender repository overview

⁠Docker Prerender

Prerender is a node server that uses Headless Chrome to render HTML, screenshots, PDFs, and HAR files out of any web page. The Prerender server listens for an http request, takes the URL and loads it in Headless Chrome, waits for the page to finish loading by waiting for the network to be idle, and then returns your content (for more information see the official documentation⁠).

⁠What's in here

⁠Usage

This lightweight docker image allows you to run prerender out of the box just by running :

docker run vsix/prerender -p 3030:3000
curl "http://localhost:3030/https://www.example.com"

⁠Options

All prerender options are customizable with env vars :

Thanks to prerender-memory-cache you can add :

In the example below prerender will authorize only domains www.example.com, www.google.com and cache all responses in memory during 6000 seconds :

docker run vsix/prerender -p 3030:3000 -e ALLOWED_DOMAINS=www.example.com,www.google.com -e CACHE_TTL=6000

⁠More

For more information about other options and usage see :

Tag summary

Content type

Image

Digest

Size

135.4 MB

Last updated

about 7 years ago

docker pull vsix/prerender