#!/bin/sh envtpl -o config.js /home/lighthouse/config.js.tmpl mkdir -p reports rm -f reports/* cd reports lighthouse \ --no-enable-error-reporting \ --chrome-flags="--headless --disable-dev-shm-usage --no-sandbox --disable-gpu" \ --config=../config.js \ --output json --output html \ --output-path=lighthouse \ -- \ "$LIGHTHOUSE_URL"