Lightweight Prerender container built on Alpine Linux with Node and Headless Chrome
500K+
Lightweight Prerender container built on Alpine Linux with Node and Headless Chromium.
Pull and run the image:
docker pull tvanro/prerender-alpine:7.2.0
docker run -p 3000:3000 tvanro/prerender-alpine:7.2.0
Prerender will now be running on http://localhost:3000. Try the container out with curl:
curl http://localhost:3000/render?url=https://www.example.com/
A few default plugins have been activated by default (see server.js):
This can be modified by creating your own server.js and mounting this file as a docker volume:
docker run -p 3000:3000 -v $(pwd)/server.js:/home/node/server.js tvanro/prerender-alpine:7.2.0
The prerender-memory-cache plugin is not activated by default.
You can activate it with the environment variable MEMORY_CACHE=1.
You can customize cache behavior with environment variables :
docker run -p 3000:3000 -e MEMORY_CACHE=1 -e CACHE_MAXSIZE=1000 -e CACHE_TTL=6000 tvanro/prerender-alpine:7.2.0
The Prerender S3 Cache plugin is not activated by default.
You can activate it with the environment variable S3_CACHE=1.
You'll need to sign up with S3 compatible service and set these 3 environment variables:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYS3_BUCKET_NAMECheck out the official Prerender documentation: https://github.com/prerender/prerender
Content type
Image
Digest
sha256:52dc60a43…
Size
350.9 MB
Last updated
11 months ago
docker pull tvanro/prerender-alpine