The goal is generate a screenshot of some web site to be embed some place else.
GET /
Get the current saved screenshot
GET /print
Take a screenshot and save it
Configuration by environment variables:
Variable | Meaning | Default |
---|---|---|
PORT | Outgoing application port | 3000 |
URL | Webpage to screenshot | https://www.github.com/ebdonato |
AUTO_HOURS1 | Hours of day to renew the screenshot | 9 21 |
TIMEOUT2 | Navigation timeout (in seconds) | 300 |
EXECUTABLE_PATH | Path to Chrome, leave blank to use Puppetter embedded one |
docker build . --build-arg URL="https://www.github.com/ebdonato" -t ebdonato/puppeteer-screenshoot:tag
docker run -d -p 3000:3000 -e URL="https://dev.page/ebdonato" ebdonato/puppeteer-screenshoot:tag