Dockerfile to build the prerender container image
Prerender is a node server from prerender.io that uses phantomjs to create static HTML out of a javascript page. It is perfect for AngularJS SEO, BackboneJS SEO, EmberJS SEO, and any other javascript framework
BASIC_AUTH_USERNAME
andBASIC_AUTH_PASSWORD
enabled the basicAuth plugin.ALLOWED_DOMAINS
enables the whitelist plugin.BLACKLISTED_DOMAINS
enables the blacklist plugin.S3_BUCKET_NAME
enables the s3HtmlCache plugin.AWS_ACCESS_KEY_ID
, required if not using EC2 IAM Roles.AWS_SECRET_ACCESS_KEY
, ditto.AWS_REGION
, defaults to "us-east-1", set differently if desired.
LOGGER
enableds the logger plugin.REDIS_URL
enables the redis plugin.PAGE_TTL
sets the seconds to cache a page. 0 means forever. Default is 1 day.